Commit 228868f5 by Jakub Jelinek Committed by Jakub Jelinek

tree-eh.c (operation_could_trap_helper_p): Ignore honor_trapv for *DIV_EXPR and *MOD_EXPR.

	* tree-eh.c (operation_could_trap_helper_p): Ignore honor_trapv for
	*DIV_EXPR and *MOD_EXPR.

From-SVN: r257450
parent a0486b65
2018-02-07 Jakub Jelinek <jakub@redhat.com>
* tree-eh.c (operation_could_trap_helper_p): Ignore honor_trapv for
*DIV_EXPR and *MOD_EXPR.
2018-02-07 H.J. Lu <hongjiu.lu@intel.com> 2018-02-07 H.J. Lu <hongjiu.lu@intel.com>
PR target/84248 PR target/84248
......
...@@ -2436,7 +2436,7 @@ operation_could_trap_helper_p (enum tree_code op, ...@@ -2436,7 +2436,7 @@ operation_could_trap_helper_p (enum tree_code op,
case ROUND_MOD_EXPR: case ROUND_MOD_EXPR:
case TRUNC_MOD_EXPR: case TRUNC_MOD_EXPR:
case RDIV_EXPR: case RDIV_EXPR:
if (honor_snans || honor_trapv) if (honor_snans)
return true; return true;
if (fp_operation) if (fp_operation)
return flag_trapping_math; return flag_trapping_math;
......
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