| 1 |
/* PR rtl-optimization/27671. |
| 2 |
The combiner used to simplify "a ^ b == a" to "a" via |
| 3 |
simplify_relational_operation_1 in simplify-rtx.c. */ |
| 4 |
/* { dg-do run } */ |
| 5 |
/* { dg-options "-O1" } */ |
| 6 |
/* { dg-options "-O1 -march=pentium4" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ |
| 7 |
|
| 8 |
extern void abort (void) __attribute__ ((noreturn)); |
| 9 |
extern void exit (int) __attribute__ ((noreturn)); |
| 10 |
|
| 11 |
static void __attribute__ ((noinline)) |
| 12 |
bar (int k) |
| 13 |
{ |
| 14 |
int n = k % 2; |
| 15 |
if (n == 0) |
| 16 |
abort (); |
| 17 |
} |
| 18 |
|
| 19 |
int |
| 20 |
main (void) |
| 21 |
{ |
| 22 |
bar (1); |
| 23 |
exit (0); |
| 24 |
} |