Skip to content

Commit 1147e70

Browse files
committed
[flang] Enable RISC-V for x86CompatibleBehavior in floating point flag
Fixes #59132 by mitigating the behavior of not setting underflow flag on RISC-V platform. Reviewed By: vzakhari Differential Revision: https://reviews.llvm.org/D138503
1 parent e45cbf9 commit 1147e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/include/flang/Evaluate/target.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct Rounding {
2525
// (viz., fail to set the Underflow flag when an inexact product of a
2626
// multiplication is rounded up to a normal number from a subnormal
2727
// in some rounding modes)
28-
#if __x86_64__
28+
#if __x86_64__ || __riscv
2929
bool x86CompatibleBehavior{true};
3030
#else
3131
bool x86CompatibleBehavior{false};

0 commit comments

Comments
 (0)