summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-06-06 04:17:04 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-06-06 04:17:04 +0000
commit6c101ebfa85c25f514363adddd3f68cd90c6f6d9 (patch)
tree0e744ee2076665388eaf79f0840e3d1fcf5fa1e0 /llvm/test/CodeGen
parent8544647e9c17bcf88b3bb790d496ba11677506f9 (diff)
downloadbcm5719-llvm-6c101ebfa85c25f514363adddd3f68cd90c6f6d9.tar.gz
bcm5719-llvm-6c101ebfa85c25f514363adddd3f68cd90c6f6d9.zip
Get rid of a bogus pattern that interferes with optimization.
llvm-svn: 72985
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/X86/2009-06-05-ScalarToVectorByteMMX.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/2009-06-05-ScalarToVectorByteMMX.ll b/llvm/test/CodeGen/X86/2009-06-05-ScalarToVectorByteMMX.ll
new file mode 100644
index 00000000000..94df530ec0e
--- /dev/null
+++ b/llvm/test/CodeGen/X86/2009-06-05-ScalarToVectorByteMMX.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+mmx | not grep movl
+
+define <8 x i8> @a(i8 zeroext %x) nounwind {
+ %r = insertelement <8 x i8> undef, i8 %x, i32 0
+ ret <8 x i8> %r
+}
+
OpenPOWER on IntegriCloud