Commit d9cb4277 by Uros Bizjak Committed by Uros Bizjak

re PR target/90547 (ICE in gen_lowpart_general, at rtlhooks.c:63)

	PR target/90547
	* config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
	Avoid calling gen_lowpart with CONST operand.

testsuite/ChangeLog:

	PR target/90547
	* gcc.target/i386/pr90547.c: New test.

From-SVN: r271479
parent 40dada26
2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
PR target/90547
* config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
Avoid calling gen_lowpart with CONST operand.
2019-05-21 Alexandre Oliva <aoliva@redhat.com>
* tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
......
......@@ -8525,6 +8525,14 @@
operands[2] = shallow_copy_rtx (operands[2]);
PUT_MODE (operands[2], SImode);
}
else if (GET_CODE (operands[2]) == CONST)
{
/* (const:DI (plus:DI (symbol_ref:DI ("...")) (const_int N))) */
operands[2] = copy_rtx (operands[2]);
PUT_MODE (operands[2], SImode);
PUT_MODE (XEXP (operands[2], 0), SImode);
PUT_MODE (XEXP (XEXP (operands[2], 0), 0), SImode);
}
else
operands[2] = gen_lowpart (SImode, operands[2]);
})
......
2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
PR target/90547
* gcc.target/i386/pr90547.c: New test.
2019-05-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc.dg/Wattribute-alias.c: Pass emtpy arg to dg-require-ifunc.
......
/* PR target/90547 */
/* { dg-do compile } */
/* { dg-options "-O2" } */
void
foo ()
{
void *g[] = {&&a, &&b};
for (unsigned c = 0x1F;; c >>= 1)
{
unsigned d = (long)("a"+1);
long e = 8;
while (e)
{
a: goto *g[c&d];
b: e--;
}
}
}
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