Use conditional internal functions in if-conversion
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / asm-es-1.c
blobfe3e899d5a22c952c8827a7814241bf809502bbe
1 /* { dg-do run } */
2 /* { dg-options "-O2" } */
4 static inline void __attribute__((always_inline))
5 f1 (void)
7 long unused;
8 asm volatile ("" : "=es" (unused) :: "memory");
11 static void __attribute__((noinline))
12 f2 (long *val)
14 *val = 0x1234;
17 static long __attribute__((noinline))
18 test (void)
20 f1 ();
22 long val;
23 f2 (&val);
24 return val;
28 int
29 main (void)
31 return test () != 0x1234;