2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr78967-1.c
blob79e3a35c464ec355c11b5e4aeb11bcbba5166918
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" } } */
7 struct S1
9 unsigned char pad1;
10 unsigned char val;
11 unsigned short pad2;
14 struct S1 foo (struct S1 a, struct S1 b)
16 a.val = b.val;
18 return a;
21 /* { dg-final { scan-assembler "\[ \t\]movb\[ \t\]+%.h, %.h" } } */