blob: a3c31432d7aef8962caf2f990e179e1cb677b4fc [file] [log] [blame]
/* Test corner case when LG from literal pool could be preferred to LARL. */
/* { dg-do compile { target { lp64 } } } */
/* { dg-options "-O3 -march=z13" } */
int e = 42;
int *c = &e;
void
h (int *i)
{
c = i;
}
void
j ()
{
h (&e);
/* { dg-final { scan-assembler {(?n)\n\tlarl\t.+\n\tstgrl\t.+\n\tbr\t%r14\n} } } */
}
void
f ()
{
h (c);
}