2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / arm / movcond_restrict_it.c
blobf1f9cfa351bb8c2732c3dced30d8bc17f0aa573d
1 /* { dg-do run } */
2 /* { dg-require-effective-target arm_thumb2_ok } */
3 /* { dg-options "-mthumb -O3 -mrestrict-it" } */
5 int a;
7 __attribute__ ((noinline, noclone)) int
8 fn1 (int c, int d)
10 if (c > d)
11 a = 1;
12 else
13 a = -1;
14 return a;
17 int
18 main (void)
20 if (fn1 (4, 5) != -1)
21 __builtin_abort ();
23 if (fn1 (5, 4) != 1)
24 __builtin_abort ();
26 return 0;