Update ChangeLog and version files for release
[official-gcc.git] / gcc / testsuite / gcc.target / sparc / sparc-trap-1.c
blob82a86fbe1a28c5430454dc23821dc88ba450a991
1 /* PR target/15693 */
3 /* { dg-do compile } */
4 /* { dg-options "-O2" } */
6 /* This used to fail on SPARC at -O2 because the combiner
7 produces a compare insn that was not rematched by the
8 compare expander. */
10 static __inline__ __attribute__ ((always_inline))
11 int page_mapping (unsigned flags)
13 if (1u & (flags >> 16))
14 return 1;
15 return 0;
17 void install_page (unsigned flags)
19 if (__builtin_expect (!page_mapping (flags), 0))
20 __builtin_trap ();