diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2016-08-24 22:22:06 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2016-08-24 22:22:06 +0000 |
| commit | d398d4a39ecef00c718e3a2cada0582fc35f46db (patch) | |
| tree | 838a2b91f16cd8c3f9e749744cc76afccfc12dc9 /llvm/test/Transforms/InstCombine/cast.ll | |
| parent | f1b20c52251af54413ca5b990db2b29d9418e256 (diff) | |
| download | bcm5719-llvm-d398d4a39ecef00c718e3a2cada0582fc35f46db.tar.gz bcm5719-llvm-d398d4a39ecef00c718e3a2cada0582fc35f46db.zip | |
[InstCombine] use m_APInt to allow icmp eq/ne (shr X, C2), C folds for splat constant vectors
llvm-svn: 279677
Diffstat (limited to 'llvm/test/Transforms/InstCombine/cast.ll')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/cast.ll | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/test/Transforms/InstCombine/cast.ll b/llvm/test/Transforms/InstCombine/cast.ll index 9837ca9eefb..b4f14e115b6 100644 --- a/llvm/test/Transforms/InstCombine/cast.ll +++ b/llvm/test/Transforms/InstCombine/cast.ll @@ -414,11 +414,9 @@ define i1 @test36(i32 %a) { ret i1 %d } -; FIXME: The trunc is removed, but the icmp+lshr fold is missing. define <2 x i1> @test36vec(<2 x i32> %a) { ; CHECK-LABEL: @test36vec( -; CHECK-NEXT: [[B:%.*]] = lshr <2 x i32> %a, <i32 31, i32 31> -; CHECK-NEXT: [[D:%.*]] = icmp eq <2 x i32> [[B]], zeroinitializer +; CHECK-NEXT: [[D:%.*]] = icmp sgt <2 x i32> %a, <i32 -1, i32 -1> ; CHECK-NEXT: ret <2 x i1> [[D]] ; %b = lshr <2 x i32> %a, <i32 31, i32 31> |

