xref: /aosp_15_r20/external/llvm/test/CodeGen/Mips/constantfp0.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mips < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdefine i32 @branch(double %d) nounwind readnone {
4*9880d681SAndroid Build Coastguard Workerentry:
5*9880d681SAndroid Build Coastguard Worker; CHECK: mtc1  $zero, $f[[R0:[0-9]+]]
6*9880d681SAndroid Build Coastguard Worker; CHECK: c.eq.d  $f{{[0-9]+}}, $f[[R0]]
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker  %tobool = fcmp une double %d, 0.000000e+00
9*9880d681SAndroid Build Coastguard Worker  %. = zext i1 %tobool to i32
10*9880d681SAndroid Build Coastguard Worker  ret i32 %.
11*9880d681SAndroid Build Coastguard Worker}
12