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