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