2016-11-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / gcc.target / arm / negscc_restrict_it.c
blobb24c6ece7271dc4cfbb718155841282ff8f63bf7
1 /* { dg-do run } */
2 /* { dg-require-effective-target arm_thumb2_ok } */
3 /* { dg-options "-mthumb -O2 -mrestrict-it" } */
5 __attribute__ ((noinline, noclone)) int
6 fn1 (int a, int b)
8 return (a == b ? 0 : -1);
11 int
12 main (void)
14 if (fn1 (3, 3) != 0)
15 __builtin_abort ();
17 if (fn1 (6, 7) != -1)
18 __builtin_abort ();