1 /* PR target/78904 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target nonpic } */
4 /* { dg-options "-O2 -masm=att" } */
5 
6 typedef __SIZE_TYPE__ size_t;
7 
8 struct S1
9 {
10   char pad1;
11   char val;
12   short pad2;
13 };
14 
15 extern char t[256];
16 
foo(struct S1 a,size_t i)17 void foo (struct S1 a, size_t i)
18 {
19   t[i] = a.val;
20 }
21 
22 /* { dg-final { scan-assembler "\[ \t\]movb\[\t \]*%.h, t" } } */
23