Fix PR 101683: FP exceptions for float->unsigned
authorAndrew Pinski <apinski@marvell.com>
Fri, 30 Jul 2021 02:48:46 +0000 (19:48 -0700)
committerAndrew Pinski <apinski@marvell.com>
Mon, 2 Aug 2021 14:47:03 +0000 (14:47 +0000)
commit99b520f031c0e491d7e170916df11dd645d60617
tree537a0a3f9d8f2037e3dfc091755b5514c2542e92
parentf48c3cd2e3f9cd9e3c329eb2d3185bd26e7c7607
Fix PR 101683: FP exceptions for float->unsigned

Just like the old bug PR9651, unsigned_fix rtl should
also be handled as a trapping instruction.

OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions.

gcc/ChangeLog:

PR rtl-optimization/101683
* rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
gcc/rtlanal.c