blob: 4a1accb583a5f99890fd2b2a465776a9002c1df6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* PR target/25199 */
/* { dg-do compile } */
/* { dg-options "-Os -mtune=pentium4" } */
/* { dg-require-effective-target ilp32 } */
struct S
{
void *p[30];
unsigned char c[4];
};
unsigned char d;
void
foo (struct S *x)
{
register unsigned char e __asm ("esi");
e = x->c[3];
__asm __volatile ("" : : "r" (e));
e = x->c[0];
__asm __volatile ("" : : "r" (e));
}
/* { dg-final { scan-assembler-not "movl\[ \t\]*123" } } */
/* { dg-final { scan-assembler "movzbl\[ \t\]*123" } } */
/* { dg-final { scan-assembler "mov(zb)?l\[ \t\]*120" } } */
|