From fa9c5eac33bef67e2faef166c902e3bb16efa30f Mon Sep 17 00:00:00 2001 From: Mon P Wang Date: Thu, 15 Jan 2009 22:43:38 +0000 Subject: 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 --- test/CodeGen/X86/widen_cast-6.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/CodeGen/X86/widen_cast-6.ll (limited to 'test/CodeGen/X86/widen_cast-6.ll') 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 ; [#uses=1] + ret i32 %retval12 +} -- cgit v1.1