diff options
Diffstat (limited to 'test/Transforms/InstCombine/rem.ll')
-rw-r--r-- | test/Transforms/InstCombine/rem.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/rem.ll b/test/Transforms/InstCombine/rem.ll index ae331eed1a58..74d42fa99bf2 100644 --- a/test/Transforms/InstCombine/rem.ll +++ b/test/Transforms/InstCombine/rem.ll @@ -53,6 +53,17 @@ define i1 @test3a(i32 %A) { ret i1 %C } +define <2 x i1> @test3a_vec(<2 x i32> %A) { +; CHECK-LABEL: @test3a_vec( +; CHECK-NEXT: [[B1:%.*]] = and <2 x i32> %A, <i32 7, i32 7> +; CHECK-NEXT: [[C:%.*]] = icmp ne <2 x i32> [[B1]], zeroinitializer +; CHECK-NEXT: ret <2 x i1> [[C]] +; + %B = srem <2 x i32> %A, <i32 -8, i32 -8> + %C = icmp ne <2 x i32> %B, zeroinitializer + ret <2 x i1> %C +} + define i32 @test4(i32 %X, i1 %C) { ; CHECK-LABEL: @test4( ; CHECK-NEXT: [[SEL:%.*]] = select i1 %C, i32 0, i32 7 |