diff options
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 6e6ed8e7b2b..237382f9072 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -2020,6 +2020,11 @@ may_trap_p (x) return 1; break; + case NEG: + case ABS: + /* These operations don't trap even with floating point. */ + break; + default: /* Any floating arithmetic may trap. */ if (GET_MODE_CLASS (GET_MODE (x)) == MODE_FLOAT) |