aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-12-14 23:40:38 +0000
committerDan Gohman <gohman@apple.com>2009-12-14 23:40:38 +0000
commit2e141d744ee1354f49a99d9da49dbd9570e4269d (patch)
treee97c47a00e229199aa0d1aed6c63f850306b1bea /test/CodeGen
parente3040e4ae5cef5ec9289efaed4b98135150d5790 (diff)
downloadexternal_llvm-2e141d744ee1354f49a99d9da49dbd9570e4269d.zip
external_llvm-2e141d744ee1354f49a99d9da49dbd9570e4269d.tar.gz
external_llvm-2e141d744ee1354f49a99d9da49dbd9570e4269d.tar.bz2
Fix integer cast code to handle vector types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91362 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/vec-trunc-store.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec-trunc-store.ll b/test/CodeGen/X86/vec-trunc-store.ll
new file mode 100644
index 0000000..ea1a151
--- /dev/null
+++ b/test/CodeGen/X86/vec-trunc-store.ll
@@ -0,0 +1,13 @@
+; RUN: llc < %s -march=x86-64 -disable-mmx | grep punpcklwd | count 2
+
+define void @foo() nounwind {
+ %cti69 = trunc <8 x i32> undef to <8 x i16> ; <<8 x i16>> [#uses=1]
+ store <8 x i16> %cti69, <8 x i16>* undef
+ ret void
+}
+
+define void @bar() nounwind {
+ %cti44 = trunc <4 x i32> undef to <4 x i16> ; <<4 x i16>> [#uses=1]
+ store <4 x i16> %cti44, <4 x i16>* undef
+ ret void
+}