diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-08-28 18:18:00 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-08-28 18:18:00 +0000 |
commit | 5c5311f4e50828ae1e2ad597c5d715c2dedd836a (patch) | |
tree | 934ed8c10d9e80baad921ade2fd4c148088d3cc2 /llvm/test/Transforms/InstCombine/shift.ll | |
parent | 4b3308c27feaed28ea2f08860cc2f9aec3c4d642 (diff) | |
download | bcm5719-llvm-5c5311f4e50828ae1e2ad597c5d715c2dedd836a.tar.gz bcm5719-llvm-5c5311f4e50828ae1e2ad597c5d715c2dedd836a.zip |
[InstCombine] use m_APInt to allow icmp (and X, Y), C folds for splat constant vectors
llvm-svn: 279937
Diffstat (limited to 'llvm/test/Transforms/InstCombine/shift.ll')
-rw-r--r-- | llvm/test/Transforms/InstCombine/shift.ll | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/test/Transforms/InstCombine/shift.ll b/llvm/test/Transforms/InstCombine/shift.ll index a91038f9eff..462950671e3 100644 --- a/llvm/test/Transforms/InstCombine/shift.ll +++ b/llvm/test/Transforms/InstCombine/shift.ll @@ -373,11 +373,9 @@ define i1 @test19a(i32 %A) { ret i1 %C } -; FIXME: Vectors should fold the same way. define <2 x i1> @test19a_vec(<2 x i32> %A) { ; CHECK-LABEL: @test19a_vec( -; CHECK-NEXT: [[B_MASK:%.*]] = and <2 x i32> %A, <i32 -4, i32 -4> -; CHECK-NEXT: [[C:%.*]] = icmp eq <2 x i32> [[B_MASK]], <i32 -4, i32 -4> +; CHECK-NEXT: [[C:%.*]] = icmp ugt <2 x i32> %A, <i32 -5, i32 -5> ; CHECK-NEXT: ret <2 x i1> [[C]] ; %B = ashr <2 x i32> %A, <i32 2, i32 2> |