1 /* { dg-do run } */
2 /* { dg-require-effective-target arm_thumb2_ok } */
3 /* { dg-options "-mthumb -O3 -mrestrict-it" }  */
4 
5 int a;
6 
7 __attribute__ ((noinline, noclone)) int
fn1(int c,int d)8 fn1 (int c, int d)
9 {
10   if (c > d)
11     a = 1;
12   else
13     a = -1;
14   return a;
15 }
16 
17 int
main(void)18 main (void)
19 {
20   if (fn1 (4, 5) != -1)
21     __builtin_abort ();
22 
23   if (fn1 (5, 4) != 1)
24     __builtin_abort ();
25 
26   return 0;
27 }
28