PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr82260-1.c
blob3804fcc53532c18d9e195fbfef312e4a81891c3c
1 /* PR target/82260 */
2 /* { dg-do compile { target lp64 } } */
3 /* { dg-options "-Os -mtune=generic -masm=att -mno-bmi2" } */
4 /* movl %esi, %ecx is shorter than movb %sil, %cl. While
5 movl %edx, %ecx is the same size as movb %dl, %cl and
6 movl %r8d, %ecx is the same size as movb %r8b, %cl, movl
7 is faster on contemporary CPUs. */
8 /* { dg-final { scan-assembler-not {\mmovb\M} } } */
10 int
11 foo (int x, int c)
13 return x >> c;
16 int
17 bar (int x, int y, int z)
19 return x >> z;
22 int
23 baz (int x, int y, int z, int u, int v)
25 return x >> v;