Commit 22fd5743 by Falk Hueffner Committed by Richard Henderson

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
parent 3462df62
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> 2003-02-11 Dave Jones <davej@codemonkey.org.uk>
* config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE. * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
......
...@@ -2517,6 +2517,18 @@ may_trap_p (x) ...@@ -2517,6 +2517,18 @@ may_trap_p (x)
return 1; return 1;
break; 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 NEG:
case ABS: case ABS:
/* These operations don't trap even with floating point. */ /* These operations don't trap even with floating point. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment