llvm/test/CodeGen/Mips/double2int.ll
Simon Atanasyan bd2bb96fb1 [mips] Fix predicate for the MipsTruncIntFP pattern
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337392 91177308-0d34-0410-b5e6-96231b3b80d8
2018-07-18 14:11:22 +00:00

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
}