aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/fmin_s.h
blob: 27394405bb43f0ae39e904c52120686ce3da093c (plain)
1
2
3
4
5
6
require_extension('F');
require_fp;
WRITE_FRD(f32_lt_quiet(f32(FRS1), f32(FRS2)) || isNaNF32UI(uint32_t(FRS2)) ? FRS1 : FRS2);
if ((isNaNF32UI(uint32_t(FRS1)) && isNaNF32UI(uint32_t(FRS2))) || softfloat_exceptionFlags)
  WRITE_FRD(f32(defaultNaNF32UI));
set_fp_exceptions;