PR middle-end/27945
[official-gcc.git] / gcc / testsuite / gcc.dg / pr27671-2.c
blob78820427b7b6d56392e7d42331febc4cf0ec95d2
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-*-* } && ilp32 } } } */
8 extern void abort (void) __attribute__ ((noreturn));
9 extern void exit (int) __attribute__ ((noreturn));
11 static void __attribute__ ((noinline))
12 bar (int k)
14 int n = k % 2;
15 if (n == 0)
16 abort ();
19 int
20 main (void)
22 bar (1);
23 exit (0);