diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/pr78952-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr78952-1.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr78952-1.c b/gcc/testsuite/gcc.target/i386/pr78952-1.c new file mode 100644 index 0000000..2d2746d --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr78952-1.c @@ -0,0 +1,21 @@ +/* PR target/78952 */ +/* { dg-do compile } */ +/* { dg-options "-O2 -masm=att" } */ +/* { dg-additional-options "-mregparm=3" { target ia32 } } */ +/* { dg-final { scan-assembler-not "movsbl" } } */ + +struct S1 +{ + char pad1; + char val; + short pad2; +}; + +struct S1 foo (struct S1 a, struct S1 b) +{ + a.val = b.val; + + return a; +} + +/* { dg-final { scan-assembler "\[ \t\]movb\[ \t\]+%.h, %.h" } } */ |