blob: ab7434f3de4c2ae941a5a996fa94798d47bb1448 [file] [log] [blame]
/* PR target/78904 */
/* { dg-do compile { target { ! ia32 } } } */
/* { dg-require-effective-target nonpic } */
/* { dg-options "-O2 -masm=att" } */
typedef __SIZE_TYPE__ size_t;
struct S1
{
unsigned char pad1;
unsigned char val;
unsigned short pad2;
unsigned int pad3;
};
extern unsigned char t[256];
void foo (struct S1 a, size_t i)
{
t[i] = a.val;
}
/* { dg-final { scan-assembler "\[ \t\]movb\[\t \]+%.h, t" } } */