Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr90773-25.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -march=x86-64" } */
3
4 struct S
5 {
6 long long s1 __attribute__ ((aligned (8)));
7 unsigned s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14;
8 };
9
10 const struct S array[] = {
11 { 0, }
12 };
13
14 void
15 foo (struct S *x)
16 {
17 x[0] = array[0];
18 }
19
20 /* { dg-final { scan-assembler-not "movdqa" } } */
21 /* { dg-final { scan-assembler-times "pxor\[\\t \]%xmm\[0-9\]+, %xmm\[0-9\]+" 1 } } */
22 /* { dg-final { scan-assembler-times "movups\[\\t \]%xmm\[0-9\]+, \\(%\[\^,\]+\\)" 1 } } */
23 /* { dg-final { scan-assembler-times "movups\[\\t \]%xmm\[0-9\]+, 16\\(%\[\^,\]+\\)" 1 } } */
24 /* { dg-final { scan-assembler-times "movups\[\\t \]%xmm\[0-9\]+, 32\\(%\[\^,\]+\\)" 1 } } */
25 /* { dg-final { scan-assembler-times "movups\[\\t \]%xmm\[0-9\]+, 48\\(%\[\^,\]+\\)" 1 } } */