The following works around SRA not being able to decompose an
aggregate copy of std::complex because with x87 math ld/st pairs
are not bit-preserving by adding -msse -mfpmath=sse. This avoids
spurious failures of the testcase.
PR testsuite/123137
* g++.dg/vect/pr64410.cc: Add -mfpmath=sse -msse on x86.
// { dg-do compile }
// { dg-require-effective-target vect_double }
// { dg-additional-options "-fexcess-precision=fast" }
+// We require decomposing a structure copy to double load/store pairs which
+// is not possible with x87 math.
+// { dg-additional-options "-msse -mfpmath=sse" { target { x86_64-*-* i?86-*-* } } }
// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
#include <vector>
return 0;
}
-// { dg-final { scan-tree-dump "pr64410.cc:46:29: optimized: loop vectorized" "vect" } }
+// { dg-final { scan-tree-dump "pr64410.cc:49:29: optimized: loop vectorized" "vect" } }