diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2016-08-22 20:45:06 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2016-08-22 20:45:06 +0000 |
| commit | a392049419b4515fd0838a4882f761db006cb9ad (patch) | |
| tree | e26059cab1b4c93081749b5986f078ed33c2b26e /llvm/test | |
| parent | 067ee5b549d7541a1d3c3c34245ec344cbe56aa6 (diff) | |
| download | bcm5719-llvm-a392049419b4515fd0838a4882f761db006cb9ad.tar.gz bcm5719-llvm-a392049419b4515fd0838a4882f761db006cb9ad.zip | |
[InstCombine] use m_APInt to allow icmp (shr exact X, Y), 0 folds for splat constant vectors
llvm-svn: 279472
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/icmp.ll | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/test/Transforms/InstCombine/icmp.ll b/llvm/test/Transforms/InstCombine/icmp.ll index 884ddbb2a72..780529c9de6 100644 --- a/llvm/test/Transforms/InstCombine/icmp.ll +++ b/llvm/test/Transforms/InstCombine/icmp.ll @@ -490,8 +490,7 @@ define i1 @test39(i32 %X, i32 %Y) { define <2 x i1> @test39vec(<2 x i32> %X, <2 x i32> %Y) { ; CHECK-LABEL: @test39vec( -; CHECK-NEXT: [[A:%.*]] = ashr exact <2 x i32> %X, %Y -; CHECK-NEXT: [[B:%.*]] = icmp eq <2 x i32> [[A]], zeroinitializer +; CHECK-NEXT: [[B:%.*]] = icmp eq <2 x i32> %X, zeroinitializer ; CHECK-NEXT: ret <2 x i1> [[B]] ; %A = ashr exact <2 x i32> %X, %Y @@ -511,8 +510,7 @@ define i1 @test40(i32 %X, i32 %Y) { define <2 x i1> @test40vec(<2 x i32> %X, <2 x i32> %Y) { ; CHECK-LABEL: @test40vec( -; CHECK-NEXT: [[A:%.*]] = lshr exact <2 x i32> %X, %Y -; CHECK-NEXT: [[B:%.*]] = icmp ne <2 x i32> [[A]], zeroinitializer +; CHECK-NEXT: [[B:%.*]] = icmp ne <2 x i32> %X, zeroinitializer ; CHECK-NEXT: ret <2 x i1> [[B]] ; %A = lshr exact <2 x i32> %X, %Y |

