1 /*
2    pr27671.c from the execute part of the gcc torture tests.
3  */
4 
5 #include <testfwk.h>
6 
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
10 
11 /* PR rtl-optimization/27671.
12    The combiner used to simplify "a ^ b == a" to "a" via
13    simplify_relational_operation_1 in simplify-rtx.c.  */
14 
15 /*extern void abort (void) __attribute__ ((noreturn));
16 extern void exit (int) __attribute__ ((noreturn));*/
17 
18 static int
foo(int a,int b)19 foo (int a, int b)
20 {
21   int c = a ^ b;
22   if (c == a)
23     ASSERT (0);
24 }
25 
26 void
testTortureExecute(void)27 testTortureExecute (void)
28 {
29   foo (0, 1);
30   return;
31 }
32 
33