diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/pr69692.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr69692.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr69692.c b/gcc/testsuite/gcc.target/i386/pr69692.c new file mode 100644 index 00000000000..63b6f352e56 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr69692.c @@ -0,0 +1,22 @@ +/* { dg-do compile { target { ia32 } } } */ +/* { dg-options "-O2 -msse2 -mno-accumulate-outgoing-args -mpreferred-stack-boundary=2" } */ + +struct bar +{ + int i[16] __attribute__ ((aligned(16))); +}; + +extern void fn2 (void); +long long a, b; + +struct bar +fn1 (struct bar x) +{ + long long c = a; + a = b ^ a; + fn2 (); + a = c; + return x; +} + +/* { dg-final { scan-assembler "pxor\[^\n\]*xmm" } } */ |