PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20100416-1.c
blob8b5a6f45e87509c7a040c9187a69cb6769f73b4e
1 void abort(void);
3 int
4 movegt(int x, int y, long long a)
6 int i;
7 int ret = 0;
8 for (i = 0; i < y; i++)
10 if (a >= (long long) 0xf000000000000000LL)
11 ret = x;
12 else
13 ret = y;
15 return ret;
18 struct test
20 long long val;
21 int ret;
22 } tests[] = {
23 { 0xf000000000000000LL, -1 },
24 { 0xefffffffffffffffLL, 1 },
25 { 0xf000000000000001LL, -1 },
26 { 0x0000000000000000LL, -1 },
27 { 0x8000000000000000LL, 1 },
30 int
31 main()
33 int i;
34 for (i = 0; i < sizeof (tests) / sizeof (tests[0]); i++)
36 if (movegt (-1, 1, tests[i].val) != tests[i].ret)
37 abort ();
39 return 0;