mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
f3704769bb
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138768 91177308-0d34-0410-b5e6-96231b3b80d8
34 lines
643 B
LLVM
34 lines
643 B
LLVM
; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s
|
|
|
|
; rdar://6504833
|
|
define float @test1(i32 %x) nounwind readnone {
|
|
; CHECK: test1
|
|
; CHECK: movd
|
|
; CHECK: orpd
|
|
; CHECK: subsd
|
|
; CHECK: cvtsd2ss
|
|
; CHECK: movss
|
|
; CHECK: flds
|
|
; CHECK: ret
|
|
entry:
|
|
%0 = uitofp i32 %x to float
|
|
ret float %0
|
|
}
|
|
|
|
; PR10802
|
|
define float @test2(<4 x i32> %x) nounwind readnone ssp {
|
|
; CHECK: test2
|
|
; CHECK: xorps [[ZERO:%xmm[0-9]+]]
|
|
; CHECK: movss {{.*}}, [[ZERO]]
|
|
; CHECK: orps
|
|
; CHECK: subsd
|
|
; CHECK: cvtsd2ss
|
|
; CHECK: movss
|
|
; CHECK: flds
|
|
; CHECK: ret
|
|
entry:
|
|
%vecext = extractelement <4 x i32> %x, i32 0
|
|
%conv = uitofp i32 %vecext to float
|
|
ret float %conv
|
|
}
|