aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorMon P Wang <wangmp@apple.com>2009-01-15 22:43:38 +0000
committerMon P Wang <wangmp@apple.com>2009-01-15 22:43:38 +0000
commitfa9c5eac33bef67e2faef166c902e3bb16efa30f (patch)
tree41726a0ae9a32fbea02272d513611a59ba1f70e8 /test/CodeGen
parentfc54c552963545a81e4ea38e60460590afb2d5ae (diff)
downloadexternal_llvm-fa9c5eac33bef67e2faef166c902e3bb16efa30f.zip
external_llvm-fa9c5eac33bef67e2faef166c902e3bb16efa30f.tar.gz
external_llvm-fa9c5eac33bef67e2faef166c902e3bb16efa30f.tar.bz2
Added missing support to widen an operand from a bit convert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62285 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/widen_cast-6.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/widen_cast-6.ll b/test/CodeGen/X86/widen_cast-6.ll
new file mode 100644
index 0000000..0fa1b7a
--- /dev/null
+++ b/test/CodeGen/X86/widen_cast-6.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse41 -disable-mmx -o %t -f
+; RUN: grep movd %t | count 1
+
+; Test bit convert that requires widening in the operand.
+
+define i32 @return_v2hi() nounwind {
+entry:
+ %retval12 = bitcast <2 x i16> zeroinitializer to i32 ; <i32> [#uses=1]
+ ret i32 %retval12
+}