brintos

brintos / llvm-project-archived public Read only

0
0
Text · 839 B · 4c58763 Raw
37 lines · plain
1; RUN: opt < %s -passes=instcombine -S | FileCheck %s2 3@.str = internal constant [5 x i8] c"foo\0A\00"4@.str1 = internal constant [5 x i8] c"bar\0A\00"5 6define i32 @main() nounwind  {7entry:8  %x = call i32 @func_11() nounwind9  %tmp3 = or i32 %x, -510  %tmp5 = urem i32 251, %tmp311  %tmp6 = icmp ne i32 %tmp5, 012  %tmp67 = zext i1 %tmp6 to i3213  %tmp9 = urem i32 %tmp67, 9514  %tmp10 = and i32 %tmp9, 115  %tmp12 = icmp eq i32 %tmp10, 016  br i1 %tmp12, label %bb14, label %bb17 18bb:19  br label %bb1520 21bb14:22  br label %bb1523 24bb15:25  %iftmp.0.0 = phi ptr [ @.str1, %bb14 ], [ @.str, %bb ]26  %tmp17 = call i32 (ptr, ...) @printf(ptr %iftmp.0.0) nounwind27  ret i32 028}29 30; CHECK-LABEL: define i32 @main(31; CHECK: call i32 @func_11()32; CHECK-NEXT: br i1 false, label %bb14, label %bb33 34declare i32 @func_11()35 36declare i32 @printf(ptr, ...) nounwind37