mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 21:20:37 +00:00
33ff5aeaa8
Generate code for Mips32r1 unless a Mips32r2 feature is tested. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139433 91177308-0d34-0410-b5e6-96231b3b80d8
9 lines
187 B
LLVM
9 lines
187 B
LLVM
; RUN: llc -march=mips < %s | FileCheck %s
|
|
|
|
define i32 @f1(double %d) nounwind readnone {
|
|
entry:
|
|
; CHECK: trunc.w.d $f{{[0-9]+}}, $f12
|
|
%conv = fptosi double %d to i32
|
|
ret i32 %conv
|
|
}
|