Commit 95ef39f4 by Jakub Jelinek Committed by Jakub Jelinek

re PR rtl-optimization/71673 (FAIL:…

re PR rtl-optimization/71673 (FAIL: c-c++-common/torture/builtin-arith-overflow-p-19.c -O2  (internal compiler error))

	PR rtl-optimization/71673
	* internal-fn.c (expand_arith_overflow_result_store): Use
	OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
	expand_simple_binop.

From-SVN: r237815
parent 849a76a5
2016-06-28 Jakub Jelinek <jakub@redhat.com> 2016-06-28 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/71673
* internal-fn.c (expand_arith_overflow_result_store): Use
OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
expand_simple_binop.
PR middle-end/66867 PR middle-end/66867
* builtins.c (expand_ifn_atomic_compare_exchange_into_call, * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
expand_ifn_atomic_compare_exchange): New functions. expand_ifn_atomic_compare_exchange): New functions.
......
...@@ -454,7 +454,7 @@ expand_arith_overflow_result_store (tree lhs, rtx target, ...@@ -454,7 +454,7 @@ expand_arith_overflow_result_store (tree lhs, rtx target,
= immed_wide_int_const (wi::shifted_mask (0, prec, false, tgtprec), = immed_wide_int_const (wi::shifted_mask (0, prec, false, tgtprec),
tgtmode); tgtmode);
lres = expand_simple_binop (tgtmode, AND, res, mask, NULL_RTX, lres = expand_simple_binop (tgtmode, AND, res, mask, NULL_RTX,
true, OPTAB_DIRECT); true, OPTAB_LIB_WIDEN);
} }
else else
{ {
......
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