1 /* PR target/78967 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -masm=att" } */
4 /* { dg-additional-options "-mregparm=3" { target ia32 } } */
5 /* { dg-final { scan-assembler-not "movzbl" } } */
6 
7 struct S1
8 {
9   unsigned char pad1;
10   unsigned char val;
11   unsigned short pad2;
12 };
13 
foo(struct S1 a,struct S1 b)14 struct S1 foo (struct S1 a, struct S1 b)
15 {
16   a.val = b.val;
17 
18   return a;
19 }
20 
21 /* { dg-final { scan-assembler "\[ \t\]movb\[ \t\]+%.h, %.h" } } */
22