Commit 186ae93c by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/89487 (ICE in expand_expr_addr_expr_1, at expr.c:7993)

	PR tree-optimization/89487
	* gcc.dg/tree-ssa/pr89487.c: Include ../pr87600.h.
	(caml_interprete): Ifdef the whole body out if REG1 or REG2 macros
	aren't defined.  Use REG1 instead of "%r15" and REG2 instead of
	"%r14".

From-SVN: r269388
parent 386a83c1
2019-03-05 Jakub Jelinek <jakub@redhat.com> 2019-03-05 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/89487
* gcc.dg/tree-ssa/pr89487.c: Include ../pr87600.h.
(caml_interprete): Ifdef the whole body out if REG1 or REG2 macros
aren't defined. Use REG1 instead of "%r15" and REG2 instead of
"%r14".
PR bootstrap/89560 PR bootstrap/89560
* g++.dg/other/pr89560.C: New test. * g++.dg/other/pr89560.C: New test.
......
/* PR tree-optimization/89487 */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O2 -ftree-loop-distribution" } */ /* { dg-options "-O2 -ftree-loop-distribution" } */
#include "../pr87600.h"
void void
caml_interprete (void) caml_interprete (void)
{ {
register int *pc asm("%r15"); #if defined(REG1) && defined(REG2)
register int *sp asm("%r14"); register int *pc asm(REG1);
register int *sp asm(REG2);
int i; int i;
for (i = 0; i < 3; ++i) for (i = 0; i < 3; ++i)
*--sp = pc[i]; *--sp = pc[i];
#endif
} }
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