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 */ 5 6 #include <limits.h> 7 8 extern void abort (void); 9 10 void __attribute__((noinline)) foo(long x)11foo (long x) 12 { 13 if (x >= 1024) 14 abort (); 15 } 16 17 int main()18main () 19 { 20 foo (LONG_MIN); 21 foo (LONG_MIN + 10000); 22 return 0; 23 } 24