Commit 6a5cdb0e by Jakub Jelinek Committed by Jakub Jelinek

re PR middle-end/79454 (c-c++-common/ubsan/overflow-vec-*.c FAILs on some 64-bit BE targets)

	PR middle-end/79454
	* internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
	result computation whenever lhs doesn't have vector mode, not
	just when it has BLKmode.

From-SVN: r245354
parent b0c00c7a
2017-02-11 Jakub Jelinek <jakub@redhat.com>
PR middle-end/79454
* internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
result computation whenever lhs doesn't have vector mode, not
just when it has BLKmode.
2017-02-10 Gerald Pfeifer <gerald@pfeifer.com> 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
* doc/makefile.texi (profiledbootstrap): Refer to the * doc/makefile.texi (profiledbootstrap): Refer to the
......
...@@ -1909,7 +1909,7 @@ expand_vector_ubsan_overflow (location_t loc, enum tree_code code, tree lhs, ...@@ -1909,7 +1909,7 @@ expand_vector_ubsan_overflow (location_t loc, enum tree_code code, tree lhs,
{ {
optab op; optab op;
lhsr = expand_expr (lhs, NULL_RTX, VOIDmode, EXPAND_WRITE); lhsr = expand_expr (lhs, NULL_RTX, VOIDmode, EXPAND_WRITE);
if (GET_MODE (lhsr) == BLKmode if (!VECTOR_MODE_P (GET_MODE (lhsr))
|| (op = optab_for_tree_code (code, TREE_TYPE (arg0), || (op = optab_for_tree_code (code, TREE_TYPE (arg0),
optab_default)) == unknown_optab optab_default)) == unknown_optab
|| (optab_handler (op, TYPE_MODE (TREE_TYPE (arg0))) || (optab_handler (op, TYPE_MODE (TREE_TYPE (arg0)))
......
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