aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86
diff options
context:
space:
mode:
authorDan Gohman <djg@cray.com>2007-09-28 23:53:40 +0000
committerDan Gohman <djg@cray.com>2007-09-28 23:53:40 +0000
commitb3228dcf956c576a195e0be2d1bb833617a3e7cc (patch)
tree65bfa17ff3aaad56701caee5e2cb8de1c1af8585 /test/CodeGen/X86
parent2fad5b06538122eac87fb628903b446517101400 (diff)
downloadexternal_llvm-b3228dcf956c576a195e0be2d1bb833617a3e7cc.zip
external_llvm-b3228dcf956c576a195e0be2d1bb833617a3e7cc.tar.gz
external_llvm-b3228dcf956c576a195e0be2d1bb833617a3e7cc.tar.bz2
Teach SplitVectorOp how to split INSERT_VECTOR_ELT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42457 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
-rw-r--r--test/CodeGen/X86/illegal-insert.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/X86/illegal-insert.ll b/test/CodeGen/X86/illegal-insert.ll
new file mode 100644
index 0000000..59773b2
--- /dev/null
+++ b/test/CodeGen/X86/illegal-insert.ll
@@ -0,0 +1,18 @@
+; RUN: llvm-as %s -o - | llc -march=x86-64
+
+define <4 x double> @foo0(<4 x double> %t) {
+ %r = insertelement <4 x double> %t, double 2.3, i32 0
+ ret <4 x double> %r
+}
+define <4 x double> @foo1(<4 x double> %t) {
+ %r = insertelement <4 x double> %t, double 2.3, i32 1
+ ret <4 x double> %r
+}
+define <4 x double> @foo2(<4 x double> %t) {
+ %r = insertelement <4 x double> %t, double 2.3, i32 2
+ ret <4 x double> %r
+}
+define <4 x double> @foo3(<4 x double> %t) {
+ %r = insertelement <4 x double> %t, double 2.3, i32 3
+ ret <4 x double> %r
+}