re PR rtl-optimization/9651 ([Alpha] FPE with NAN in spite of isnan protection)

PR optimization/9651
        * rtlanal.c (may_trap_p): Handle FIX.

From-SVN: r62717
This commit is contained in:
Falk Hueffner 2003-02-11 20:43:06 +00:00 committed by Richard Henderson
parent 3462df6282
commit 22fd5743d9
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-02-11 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
PR optimization/9651
* rtlanal.c (may_trap_p): Handle FIX.
2003-02-11 Dave Jones <davej@codemonkey.org.uk>
* config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.

View File

@ -2517,6 +2517,18 @@ may_trap_p (x)
return 1;
break;
case FIX:
/* Conversion of floating point might trap. */
if (flag_trapping_math && HONOR_NANS (GET_MODE (XEXP (x, 0))))
return 1;
break;
case FIX:
/* Conversion of floating point might trap. */
if (flag_trapping_math && HONOR_NANS (GET_MODE (XEXP (x, 0))))
return 1;
break;
case NEG:
case ABS:
/* These operations don't trap even with floating point. */