[AArch64][NFC] NFC for const vector as Instruction operand (#116790)
[llvm-project.git] / llvm / test / Transforms / InstCombine / urem-simplify-bug.ll
blob4c58763b110dab1e847d1267867dffe4916fe3d5
1 ; RUN: opt < %s -passes=instcombine -S | FileCheck %s
3 @.str = internal constant [5 x i8] c"foo\0A\00"
4 @.str1 = internal constant [5 x i8] c"bar\0A\00"
6 define i32 @main() nounwind  {
7 entry:
8   %x = call i32 @func_11() nounwind
9   %tmp3 = or i32 %x, -5
10   %tmp5 = urem i32 251, %tmp3
11   %tmp6 = icmp ne i32 %tmp5, 0
12   %tmp67 = zext i1 %tmp6 to i32
13   %tmp9 = urem i32 %tmp67, 95
14   %tmp10 = and i32 %tmp9, 1
15   %tmp12 = icmp eq i32 %tmp10, 0
16   br i1 %tmp12, label %bb14, label %bb
18 bb:
19   br label %bb15
21 bb14:
22   br label %bb15
24 bb15:
25   %iftmp.0.0 = phi ptr [ @.str1, %bb14 ], [ @.str, %bb ]
26   %tmp17 = call i32 (ptr, ...) @printf(ptr %iftmp.0.0) nounwind
27   ret i32 0
30 ; CHECK-LABEL: define i32 @main(
31 ; CHECK: call i32 @func_11()
32 ; CHECK-NEXT: br i1 false, label %bb14, label %bb
34 declare i32 @func_11()
36 declare i32 @printf(ptr, ...) nounwind