xref: /llvm-project/llvm/test/CodeGen/Mips/double2int.ll (revision ae26f50aea4ef1a6c7058019f0db11a91bbcdade)
1; RUN: llc -mtriple=mips -mcpu=mips32 < %s | FileCheck %s
2; RUN: llc -mtriple=mips -mcpu=mips32r6 < %s | FileCheck %s
3
4define i32 @f1(double %d) nounwind readnone {
5entry:
6; CHECK: trunc.w.d $f{{[0-9]+}}, $f12
7  %conv = fptosi double %d to i32
8  ret i32 %conv
9}
10