diff options
author | Sanjay Patel <spatel@rotateright.com> | 2017-06-02 16:29:41 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2017-06-02 16:29:41 +0000 |
commit | ce241f48c52c2ae5f7fd3821ad2a8431e1be6117 (patch) | |
tree | 6b75f2e7580e74874343cc2df9f158f6cff57787 /llvm/test | |
parent | d249e4a188a6e5448e19f61597b00e1b989c7376 (diff) | |
download | bcm5719-llvm-ce241f48c52c2ae5f7fd3821ad2a8431e1be6117.tar.gz bcm5719-llvm-ce241f48c52c2ae5f7fd3821ad2a8431e1be6117.zip |
[InstCombine] fix icmp with not op and constant to work with splat vector constant
llvm-svn: 304562
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/Transforms/InstCombine/not.ll | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/test/Transforms/InstCombine/not.ll b/llvm/test/Transforms/InstCombine/not.ll index b52919071d2..8352c07a816 100644 --- a/llvm/test/Transforms/InstCombine/not.ll +++ b/llvm/test/Transforms/InstCombine/not.ll @@ -67,8 +67,7 @@ define i1 @not_cmp_constant(i32 %a) { define <2 x i1> @not_cmp_constant_vector(<2 x i32> %a) { ; CHECK-LABEL: @not_cmp_constant_vector( -; CHECK-NEXT: [[NOTA:%.*]] = xor <2 x i32> %a, <i32 -1, i32 -1> -; CHECK-NEXT: [[CMP:%.*]] = icmp slt <2 x i32> [[NOTA]], <i32 42, i32 42> +; CHECK-NEXT: [[CMP:%.*]] = icmp sgt <2 x i32> %a, <i32 -43, i32 -43> ; CHECK-NEXT: ret <2 x i1> [[CMP]] ; %nota = xor <2 x i32> %a, <i32 -1, i32 -1> |