1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=riscv32 -mattr=+f -target-abi ilp32f -verify-machineinstrs \
3 ; RUN: < %s | FileCheck -check-prefix=RV32IF %s
4 ; RUN: llc -mtriple=riscv64 -mattr=+f -target-abi lp64f -verify-machineinstrs \
5 ; RUN: < %s | FileCheck -check-prefix=RV64IF %s
7 define zeroext i1 @float_is_nan(float %a) nounwind {
8 ; RV32IF-LABEL: float_is_nan:
10 ; RV32IF-NEXT: feq.s a0, fa0, fa0
11 ; RV32IF-NEXT: xori a0, a0, 1
14 ; RV64IF-LABEL: float_is_nan:
16 ; RV64IF-NEXT: feq.s a0, fa0, fa0
17 ; RV64IF-NEXT: xori a0, a0, 1
19 %1 = fcmp uno float %a, 0.000000e+00
23 define zeroext i1 @float_not_nan(float %a) nounwind {
24 ; RV32IF-LABEL: float_not_nan:
26 ; RV32IF-NEXT: feq.s a0, fa0, fa0
29 ; RV64IF-LABEL: float_not_nan:
31 ; RV64IF-NEXT: feq.s a0, fa0, fa0
33 %1 = fcmp ord float %a, 0.000000e+00