[compiler-rt] e2cd2f7 - [builtins] Fix value of ARM_INEXACT

Alex Richardson via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 12 03:17:39 PST 2021


Author: Alex Richardson
Date: 2021-03-12T11:15:24Z
New Revision: e2cd2f7d08ce4391f19c0ce5c4ea63bb9a985fcf

URL: https://github.com/llvm/llvm-project/commit/e2cd2f7d08ce4391f19c0ce5c4ea63bb9a985fcf
DIFF: https://github.com/llvm/llvm-project/commit/e2cd2f7d08ce4391f19c0ce5c4ea63bb9a985fcf.diff

LOG: [builtins] Fix value of ARM_INEXACT

The existing value of 0x1000 sets the IXE bit (Inexact floating-point exception
trap enable), but we really want to be setting IXC, bit 4:
Inexact cumulative floating-point exception bit. This bit is set to 1 to
indicate that the Inexact floating-point exception has occurred since 0 was
last written to this bit.

Reviewed By: kongyi, peter.smith
Differential Revision: https://reviews.llvm.org/D98353

Added: 
    

Modified: 
    compiler-rt/lib/builtins/arm/fp_mode.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/builtins/arm/fp_mode.c b/compiler-rt/lib/builtins/arm/fp_mode.c
index 300b71935ad4..c0ca9095142e 100644
--- a/compiler-rt/lib/builtins/arm/fp_mode.c
+++ b/compiler-rt/lib/builtins/arm/fp_mode.c
@@ -18,7 +18,7 @@
                         ARM_DOWNWARD | ARM_TOWARDZERO)
 #define ARM_RMODE_SHIFT 22
 
-#define ARM_INEXACT     0x1000
+#define ARM_INEXACT     0x10
 
 #ifndef __ARM_FP
 // For soft float targets, allow changing rounding mode by overriding the weak


        


More information about the llvm-commits mailing list