2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20031020-1.c
blob526ca0402f91117b3fd54cd09f507c2898f7e78b
1 /* PR target/12654
2 The Alpha backend tried to do a >= 1024 as (a - 1024) >= 0, which fails
3 for very large negative values. */
4 /* Origin: tg@swox.com */
6 #include <limits.h>
8 extern void abort (void);
10 void __attribute__((noinline))
11 foo (long x)
13 if (x >= 1024)
14 abort ();
17 int
18 main ()
20 foo (LONG_MIN);
21 foo (LONG_MIN + 10000);
22 return 0;