aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Mips/double2int.ll
blob: 445ccb334a8ffd8f31deb2b54d7baa6e4cab5e75 (plain)
1
2
3
4
5
6
7
8
; 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
}