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 %s
4 ; RUN: llc -mtriple=riscv64 -mattr=+d -target-abi lp64d -verify-machineinstrs \
5 ; RUN: < %s | FileCheck %s
7 define zeroext i1 @double_is_nan(double %a) nounwind {
8 ; CHECK-LABEL: double_is_nan:
10 ; CHECK-NEXT: feq.d a0, fa0, fa0
11 ; CHECK-NEXT: xori a0, a0, 1
13 %1 = fcmp uno double %a, 0.000000e+00
17 define zeroext i1 @double_not_nan(double %a) nounwind {
18 ; CHECK-LABEL: double_not_nan:
20 ; CHECK-NEXT: feq.d a0, fa0, fa0
22 %1 = fcmp ord double %a, 0.000000e+00