aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2011-12-15 22:11:31 +0000
committerChad Rosier <mcrosier@apple.com>2011-12-15 22:11:31 +0000
commitc8dd20170e312ad644b6f8aedc5293d3362d91c1 (patch)
tree82f361716450b93eb64a84d13253fab03890f02c /test/CodeGen
parent7bcfc9950bac0f411f9671e8d6ce483bd219727e (diff)
Add missing zmovl AVX patterns which were causing crashes.
Patch by Elena Demikhovsky <elena.demikhovsky@intel.com>! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146689 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/2011-12-08-AVXISelBugs.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2011-12-08-AVXISelBugs.ll b/test/CodeGen/X86/2011-12-08-AVXISelBugs.ll
index 26670c169e..d9781027ae 100644
--- a/test/CodeGen/X86/2011-12-08-AVXISelBugs.ll
+++ b/test/CodeGen/X86/2011-12-08-AVXISelBugs.ll
@@ -61,3 +61,11 @@ t2.exit: ; preds = %0, %loop
return: ; preds = %loop.cond
ret void
}
+
+define <3 x i64> @t4() nounwind {
+entry:
+ %0 = load <2 x i64> addrspace(1)* undef, align 16
+ %1 = extractelement <2 x i64> %0, i32 0
+ %2 = insertelement <3 x i64> <i64 undef, i64 0, i64 0>, i64 %1, i32 0
+ ret <3 x i64> %2
+}