2013-08-24 04:39:19 +08:00
|
|
|
; RUN: llc < %s -march=x86 -mattr=+sse4.1 | FileCheck %s
|
2009-01-16 06:43:38 +08:00
|
|
|
|
|
|
|
; Test bit convert that requires widening in the operand.
|
|
|
|
|
|
|
|
define i32 @return_v2hi() nounwind {
|
2014-07-08 16:45:38 +08:00
|
|
|
; CHECK-LABEL: @return_v2hi
|
|
|
|
; CHECK: pushl
|
|
|
|
; CHECK-NEXT: xorl %eax, %eax
|
|
|
|
; CHECK-NEXT: popl
|
|
|
|
; CHECK-NEXT: ret
|
2009-01-16 06:43:38 +08:00
|
|
|
entry:
|
|
|
|
%retval12 = bitcast <2 x i16> zeroinitializer to i32 ; <i32> [#uses=1]
|
|
|
|
ret i32 %retval12
|
|
|
|
}
|