Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr78904-8a.c

raw
1 /* PR target/78904 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -masm=att" } */
4 /* { dg-final { scan-assembler-not "movzbl" } } */
5
6 struct S1
7 {
8 unsigned char val;
9 unsigned char pad1;
10 };
11
12 struct S2
13 {
14 unsigned char pad1;
15 unsigned char val;
16 };
17
18 struct S1 test (struct S1 a, struct S2 b)
19 {
20 a.val = b.val;
21
22 return a;
23 }