diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2016-07-16 18:29:26 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2016-07-16 18:29:26 +0000 |
| commit | 79acd2a96b1969774badbdbf4c8180b0e2307178 (patch) | |
| tree | ba958ff8ac28439d4489f44d29f44b3fd1664d10 /llvm/test | |
| parent | 040bd16e562b3354562d1d334bf290fde5f57fd6 (diff) | |
| download | bcm5719-llvm-79acd2a96b1969774badbdbf4c8180b0e2307178.tar.gz bcm5719-llvm-79acd2a96b1969774badbdbf4c8180b0e2307178.zip | |
[InstCombine] allow X + signbit --> X ^ signbit for vector splats
llvm-svn: 275691
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/apint-add.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/InstCombine/apint-add.ll b/llvm/test/Transforms/InstCombine/apint-add.ll index f27af7b60cc..6740ae66aef 100644 --- a/llvm/test/Transforms/InstCombine/apint-add.ll +++ b/llvm/test/Transforms/InstCombine/apint-add.ll @@ -36,7 +36,7 @@ define i15 @test3(i15 %x) { ; X + signbit --> X ^ signbit define <2 x i5> @test3vec(<2 x i5> %x) { ; CHECK-LABEL: @test3vec( -; CHECK-NEXT: [[Y:%.*]] = add <2 x i5> %x, <i5 -16, i5 -16> +; CHECK-NEXT: [[Y:%.*]] = xor <2 x i5> %x, <i5 -16, i5 -16> ; CHECK-NEXT: ret <2 x i5> [[Y]] ; %y = add <2 x i5> %x, <i5 16, i5 16> |

