Without SSE2, the loop is found too big to unroll, and we don't match
the expected pattern.  So enable sse2.

Regstrapped on x86_64-linux-gnu.  Also tested with ppc-vx7r2,
ppc64-vx7r2, arm-vx7r2, aarch64-vx7r2, x86_64-vx7r2, and x86-vx7r2.  Ok
to install?


for  gcc/testsuite/ChangeLog

        * gcc.dg/pr117888-2.c: Enable sse2.
---
 gcc/testsuite/gcc.dg/pr117888-2.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.dg/pr117888-2.c 
b/gcc/testsuite/gcc.dg/pr117888-2.c
index 97aa93d8ace82..ba795309e01c9 100644
--- a/gcc/testsuite/gcc.dg/pr117888-2.c
+++ b/gcc/testsuite/gcc.dg/pr117888-2.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O3 -funroll-loops -fno-tree-vectorize 
-fdump-tree-cunroll-details" } */
+/* { dg-additional-options "-msse2" { target x86 } } */
 
 typedef struct {
   double real;

-- 
Alexandre Oliva, happy hacker            https://blog.lx.oliva.nom.br/
Free Software Activist     FSFLA co-founder     GNU Toolchain Engineer
More tolerance and less prejudice are key for inclusion and diversity.
Excluding neuro-others for not behaving ""normal"" is *not* inclusive!

Reply via email to