Commit 09cbbded by Jakub Jelinek Committed by Jakub Jelinek

re PR target/83930 (ICE: RTL check: expected code 'const_int', have 'mem' in…

re PR target/83930 (ICE: RTL check: expected code 'const_int', have 'mem' in simplify_binary_operation_1, at simplify-rtx.c:3302)

	PR target/83930
	* simplify-rtx.c (simplify_binary_operation_1) <case UMOD>: Use
	UINTVAL (trueop1) instead of INTVAL (op1).

	* gcc.dg/pr83930.c: New test.

From-SVN: r256915
parent f18fee82
2018-01-20 Jakub Jelinek <jakub@redhat.com>
PR target/83930
* simplify-rtx.c (simplify_binary_operation_1) <case UMOD>: Use
UINTVAL (trueop1) instead of INTVAL (op1).
2018-01-19 Jakub Jelinek <jakub@redhat.com>
PR debug/81570
......
......@@ -3411,7 +3411,8 @@ simplify_binary_operation_1 (enum rtx_code code, machine_mode mode,
if (CONST_INT_P (trueop1)
&& exact_log2 (UINTVAL (trueop1)) > 0)
return simplify_gen_binary (AND, mode, op0,
gen_int_mode (INTVAL (op1) - 1, mode));
gen_int_mode (UINTVAL (trueop1) - 1,
mode));
break;
case MOD:
......
2018-01-20 Jakub Jelinek <jakub@redhat.com>
PR target/83930
* gcc.dg/pr83930.c: New test.
2018-01-19 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/83900
......
/* PR target/83930 */
/* { dg-do compile } */
/* { dg-options "-Og -fno-tree-ccp -w" } */
unsigned __attribute__ ((__vector_size__ (16))) v;
static inline void
bar (unsigned char d)
{
v /= d;
}
__attribute__ ((always_inline)) void
foo (void)
{
bar (4);
}
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