mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-27 15:22:29 +00:00
991b6a22b6
- As there's no 64-bit GPRs in 32-bit mode, a custom conversion from v2u32 to v2f32 is added to improve the efficiency of the code generated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166545 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
246 B
LLVM
12 lines
246 B
LLVM
; RUN: llc < %s -mtriple=i686-linux-pc -mcpu=corei7 | FileCheck %s
|
|
|
|
define <2 x float> @bar(<2 x i32> %in) {
|
|
%r = uitofp <2 x i32> %in to <2 x float>
|
|
ret <2 x float> %r
|
|
; CHECK: bar
|
|
; CHECK: or
|
|
; CHECK: subpd
|
|
; CHECK: cvtpd2ps
|
|
; CHECK: ret
|
|
}
|