Debian Codegraph @

gcc/testsuite/gcc.target/arc/builtin_swap-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mswap" } */
3
4 int foo()
5 {
6 return __builtin_arc_swap (0x12345678);
7 }
8
9 /* { dg-final { scan-assembler-not "swap\\s+r" } } */