summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/widen_cast-6.ll
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/X86/widen_cast-6.ll
parentfc54c552963545a81e4ea38e60460590afb2d5ae (diff)
downloadllvm-fa9c5eac33bef67e2faef166c902e3bb16efa30f.tar.gz
llvm-fa9c5eac33bef67e2faef166c902e3bb16efa30f.tar.bz2
llvm-fa9c5eac33bef67e2faef166c902e3bb16efa30f.tar.xz
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/X86/widen_cast-6.ll')
-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 0000000000..0fa1b7a760
--- /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
+}