blob: 6a100c0166749d4b5267c82f5061dc1c0e49eb4c [file] [log] [blame]
/* PR target/78904 */
/* { dg-do compile } */
/* { dg-require-effective-target nonpic } */
/* { dg-options "-O2 -masm=att -mtune=generic" } */
typedef __SIZE_TYPE__ size_t;
struct S1
{
unsigned char pad1;
unsigned char val;
};
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" } } */