summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/illegal-insert.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-09-28 23:53:40 +0000
committerDan Gohman <gohman@apple.com>2007-09-28 23:53:40 +0000
commit9fe4662d9a9e5b346dc053b6a53bc3d096adb77b (patch)
tree65bfa17ff3aaad56701caee5e2cb8de1c1af8585 /test/CodeGen/X86/illegal-insert.ll
parent763856526f6d98f8cce313590fb2555628e36f04 (diff)
downloadllvm-9fe4662d9a9e5b346dc053b6a53bc3d096adb77b.tar.gz
llvm-9fe4662d9a9e5b346dc053b6a53bc3d096adb77b.tar.bz2
llvm-9fe4662d9a9e5b346dc053b6a53bc3d096adb77b.tar.xz
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/illegal-insert.ll')
-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 0000000000..59773b2491
--- /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
+}