diff options
| author | Craig Topper <craig.topper@intel.com> | 2017-08-05 20:00:42 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2017-08-05 20:00:42 +0000 |
| commit | 65dd32afbc2aba6975a44fab7c8a4f4f05e104d7 (patch) | |
| tree | 935bdb8b4653b34f40926c7a333c4f3dbedca6e1 /llvm/test/Transforms/InstCombine/vector-casts.ll | |
| parent | 1bbcab9ca59e371f73074c052242f06cdd53038d (diff) | |
| download | bcm5719-llvm-65dd32afbc2aba6975a44fab7c8a4f4f05e104d7.tar.gz bcm5719-llvm-65dd32afbc2aba6975a44fab7c8a4f4f05e104d7.zip | |
[InstCombine] Teach the code that pulls logical operators through constant shifts to handle vector splats too.
llvm-svn: 310185
Diffstat (limited to 'llvm/test/Transforms/InstCombine/vector-casts.ll')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/vector-casts.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/InstCombine/vector-casts.ll b/llvm/test/Transforms/InstCombine/vector-casts.ll index 447f86f05d2..4541b307365 100644 --- a/llvm/test/Transforms/InstCombine/vector-casts.ll +++ b/llvm/test/Transforms/InstCombine/vector-casts.ll @@ -15,8 +15,8 @@ define <2 x i1> @test1(<2 x i64> %a) { ; The ashr turns into an lshr. define <2 x i64> @test2(<2 x i64> %a) { ; CHECK-LABEL: @test2( -; CHECK-NEXT: [[B:%.*]] = and <2 x i64> %a, <i64 65534, i64 65534> -; CHECK-NEXT: [[TMP1:%.*]] = lshr exact <2 x i64> [[B]], <i64 1, i64 1> +; CHECK-NEXT: [[B:%.*]] = lshr <2 x i64> [[A:%.*]], <i64 1, i64 1> +; CHECK-NEXT: [[TMP1:%.*]] = and <2 x i64> [[B]], <i64 32767, i64 32767> ; CHECK-NEXT: ret <2 x i64> [[TMP1]] ; %b = and <2 x i64> %a, <i64 65535, i64 65535> |

