Debian Codegraph @

gcc/testsuite/gcc.target/i386/movbe-4.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 #pragma GCC target ("movbe")
5
6 extern int x;
7
8 void
9 foo (int i)
10 {
11 x = __builtin_bswap32 (i);
12 }
13
14 int
15 bar ()
16 {
17 return __builtin_bswap32 (x);
18 }
19
20 /* { dg-final { scan-assembler-times "movbel\[ \t\]" 2 } } */