summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/avx-vextractf128.ll
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-03-07 18:51:02 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-03-07 18:51:02 +0000
commit36b36de4e89d46fb6aac4de791486e5733385322 (patch)
treed9a799fff023a8e2e1585f6c5e915e59207daf58 /test/CodeGen/X86/avx-vextractf128.ll
parent02c2ecf9f166522cc1c58dd484668c1cbacc0c6e (diff)
Move testcase, this is testing extraction not inserting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176635 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/avx-vextractf128.ll')
-rw-r--r--test/CodeGen/X86/avx-vextractf128.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx-vextractf128.ll b/test/CodeGen/X86/avx-vextractf128.ll
index ff56a454996..ad8365bb59c 100644
--- a/test/CodeGen/X86/avx-vextractf128.ll
+++ b/test/CodeGen/X86/avx-vextractf128.ll
@@ -102,3 +102,21 @@ entry:
store <2 x i64> %2, <2 x i64>* %addr, align 1
ret void
}
+
+; PR15462
+define void @t9(i64* %p) {
+ store i64 0, i64* %p
+ %q = getelementptr i64* %p, i64 1
+ store i64 0, i64* %q
+ %r = getelementptr i64* %p, i64 2
+ store i64 0, i64* %r
+ %s = getelementptr i64* %p, i64 3
+ store i64 0, i64* %s
+ ret void
+
+; CHECK: t9:
+; CHECK: vxorps %xmm
+; CHECK-NOT: vextractf
+; CHECK: vmovups
+; CHECK: vmovups
+}