PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr78720.c
blobb99c232a1ba99c6fab69e2a91a072ba7ff077406
1 /* PR tree-optimization/78720 */
3 __attribute__((noinline, noclone)) long int
4 foo (signed char x)
6 return x < 0 ? 0x80000L : 0L;
9 __attribute__((noinline, noclone)) long int
10 bar (signed char x)
12 return x < 0 ? 0x80L : 0L;
15 __attribute__((noinline, noclone)) long int
16 baz (signed char x)
18 return x < 0 ? 0x20L : 0L;
21 int
22 main ()
24 if (foo (-1) != 0x80000L || bar (-1) != 0x80L || baz (-1) != 0x20L
25 || foo (0) != 0L || bar (0) != 0L || baz (0) != 0L
26 || foo (31) != 0L || bar (31) != 0L || baz (31) != 0L)
27 __builtin_abort ();
28 return 0;