mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
b00c7cab3e
This is a follow-up to the rL337171. This patch fixes regression introduced by the r337171 and enables MipsTruncIntFP pattern. Differential revision: https://reviews.llvm.org/D49469 llvm-svn: 337392
10 lines
258 B
LLVM
10 lines
258 B
LLVM
; RUN: llc -march=mips -mcpu=mips32 < %s | FileCheck %s
|
|
; RUN: llc -march=mips -mcpu=mips32r6 < %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
|
|
}
|