diff options
| author | Haicheng Wu <haicheng@codeaurora.org> | 2018-03-26 18:59:28 +0000 |
|---|---|---|
| committer | Haicheng Wu <haicheng@codeaurora.org> | 2018-03-26 18:59:28 +0000 |
| commit | b45f92167857296cc4b090f81e0938091f1ec248 (patch) | |
| tree | 6865cf6bbe707e33f27693f320f00ea080bb98a3 /llvm/test/Transforms/SLPVectorizer | |
| parent | 9c2c938521dd590e1812de9488de3557a0750bfc (diff) | |
| download | bcm5719-llvm-b45f92167857296cc4b090f81e0938091f1ec248.tar.gz bcm5719-llvm-b45f92167857296cc4b090f81e0938091f1ec248.zip | |
[SLP] Add more checks to a test case. NFC.
llvm-svn: 328572
Diffstat (limited to 'llvm/test/Transforms/SLPVectorizer')
| -rw-r--r-- | llvm/test/Transforms/SLPVectorizer/AArch64/ext-trunc.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/Transforms/SLPVectorizer/AArch64/ext-trunc.ll b/llvm/test/Transforms/SLPVectorizer/AArch64/ext-trunc.ll index 8f50b8bedec..dc03ee0fbd7 100644 --- a/llvm/test/Transforms/SLPVectorizer/AArch64/ext-trunc.ll +++ b/llvm/test/Transforms/SLPVectorizer/AArch64/ext-trunc.ll @@ -12,6 +12,20 @@ define void @test(<4 x i16> %a, <4 x i16> %b, i64* %p) { ; CHECK-NEXT: [[Z0:%.*]] = zext <4 x i16> [[A:%.*]] to <4 x i64> ; CHECK-NEXT: [[Z1:%.*]] = zext <4 x i16> [[B:%.*]] to <4 x i64> ; CHECK-NEXT: [[SUB0:%.*]] = sub nsw <4 x i64> [[Z0]], [[Z1]] +; CHECK-NEXT: [[TMP0:%.*]] = extractelement <4 x i64> [[SUB0]], i32 0 +; CHECK-NEXT: [[GEP0:%.*]] = getelementptr inbounds i64, i64* [[P:%.*]], i64 [[TMP0]] +; CHECK-NEXT: [[LOAD0:%.*]] = load i64, i64* [[GEP0]], align 4 +; CHECK-NEXT: [[TMP1:%.*]] = extractelement <4 x i64> [[SUB0]], i32 1 +; CHECK-NEXT: [[GEP1:%.*]] = getelementptr inbounds i64, i64* [[P]], i64 [[TMP1]] +; CHECK-NEXT: [[LOAD1:%.*]] = load i64, i64* [[GEP1]], align 4 +; CHECK-NEXT: [[TMP2:%.*]] = extractelement <4 x i64> [[SUB0]], i32 2 +; CHECK-NEXT: [[GEP2:%.*]] = getelementptr inbounds i64, i64* [[P]], i64 [[TMP2]] +; CHECK-NEXT: [[LOAD2:%.*]] = load i64, i64* [[GEP2]], align 4 +; CHECK-NEXT: [[TMP3:%.*]] = extractelement <4 x i64> [[SUB0]], i32 3 +; CHECK-NEXT: [[GEP3:%.*]] = getelementptr inbounds i64, i64* [[P]], i64 [[TMP3]] +; CHECK-NEXT: [[LOAD3:%.*]] = load i64, i64* [[GEP3]], align 4 +; CHECK-NEXT: call void @foo(i64 [[LOAD0]], i64 [[LOAD1]], i64 [[LOAD2]], i64 [[LOAD3]]) +; CHECK-NEXT: ret void ; entry: %z0 = zext <4 x i16> %a to <4 x i32> |

