brintos

brintos / llvm-project-archived public Read only

0
0
Text · 878 B · 70cf4ed Raw
30 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt < %s -S -passes=ipsccp | FileCheck %s3 4%struct.wobble = type { i32 }5%struct.zot = type { %struct.wobble, %struct.wobble, %struct.wobble }6 7declare dso_local fastcc float @bar(ptr noalias, <8 x i32>) unnamed_addr8 9define %struct.zot @widget(<8 x i32> %arg) local_unnamed_addr {10; CHECK-LABEL: @widget(11; CHECK-NEXT:  bb:12; CHECK-NEXT:    ret [[STRUCT_ZOT:%.*]] undef13;14bb:15  ret %struct.zot undef16}17 18define void @baz(<8 x i32> %arg) local_unnamed_addr {19; CHECK-LABEL: @baz(20; CHECK-NEXT:  bb:21; CHECK-NEXT:    [[TMP:%.*]] = call [[STRUCT_ZOT:%.*]] @widget(<8 x i32> [[ARG:%.*]])22; CHECK-NEXT:    [[TMP1:%.*]] = extractvalue [[STRUCT_ZOT]] undef, 0, 023; CHECK-NEXT:    ret void24;25bb:26  %tmp = call %struct.zot @widget(<8 x i32> %arg)27  %tmp1 = extractvalue %struct.zot %tmp, 0, 028  ret void29}30