Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / sparc-trap-1.c
bloba516a8864953ba33acb76ae9df73b069142d5393
1 /* PR target/15693 */
2 /* { dg-do compile { target sparc*-*-* } } */
3 /* { dg-options "-O2" } */
5 /* This used to fail on SPARC at -O2 because the combiner
6 produces a compare insn that was not rematched by the
7 compare expander. */
9 static __inline__ __attribute__ ((always_inline))
10 int page_mapping (unsigned flags)
12 if (1u & (flags >> 16))
13 return 1;
14 return 0;
16 void install_page (unsigned flags)
18 if (__builtin_expect (!page_mapping (flags), 0))
19 __builtin_trap ();