PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr68961.c
blobef379c4701a3a5de98cc9f920331911ae5e36548
1 /* { dg-do compile { target lp64 } } */
2 /* { dg-options "-O3 -fno-vect-cost-model -fdump-tree-slp2-details" } */
4 struct x { double d[2]; };
6 struct x
7 pack (double a, double aa)
9 struct x u;
10 u.d[0] = a;
11 u.d[1] = aa;
12 return u;
15 /* The function should be optimized to just return as arguments and
16 result exactly overlap even when previously vectorized. */
18 /* { dg-final { scan-tree-dump "basic block vectorized" "slp2" } } */
19 /* { dg-final { scan-assembler-not "mov" } } */