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