Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.target / cris / builtin_bswap_v3.c
blob86dc938263ef871570a0ca1e44b23e7d92b051f9
1 /* Check that we don't use the swap insn for bswap by checking assembler
2 output. The swap instruction was added in v8. */
3 /* { dg-do compile } */
4 /* { dg-skip-if "" { "cris-*-elf" } { "-march*" } { "" } } */
5 /* { dg-options "-O2 -march=v3" } */
6 /* { dg-final { scan-assembler-not "\[ \t\]swapwb\[ \t\]" } } */
8 int
9 f (int a)
11 return __builtin_bswap32(a);