summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Mips/double2int.ll
blob: f0d8ad28100f657e2121d5239c128a21bd82113d (plain)
1
2
3
4
5
6
7
8
9
; 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
}
OpenPOWER on IntegriCloud