gcc/testsuite/gcc.target/arm/negscc_restrict_it.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-require-effective-target arm_thumb2_ok } */ |
| 3 | /* { dg-options "-mthumb -O2 -mrestrict-it" } */ |
| 4 | |
| 5 | __attribute__ ((noinline, noclone)) int |
| 6 | fn1 (int a, int b) |
| 7 | { |
| 8 | return (a == b ? 0 : -1); |
| 9 | } |
| 10 | |
| 11 | int |
| 12 | main (void) |
| 13 | { |
| 14 | if (fn1 (3, 3) != 0) |
| 15 | __builtin_abort (); |
| 16 | |
| 17 | if (fn1 (6, 7) != -1) |
| 18 | __builtin_abort (); |
| 19 | } |