ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/powerpc/asm-es-1.c

33 lines
418 B
C
Raw Permalink Normal View History

2024-04-01 15:19:46 +00:00
/* { dg-do run } */
/* { dg-options "-O2" } */
static inline void __attribute__((always_inline))
f1 (void)
{
long unused;
asm volatile ("" : "=es" (unused) :: "memory");
}
static void __attribute__((noinline))
f2 (long *val)
{
*val = 0x1234;
}
static long __attribute__((noinline))
test (void)
{
f1 ();
{
long val;
f2 (&val);
return val;
}
}
int
main (void)
{
return test () != 0x1234;
}