aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorChristoph Müllner <christoph.muellner@vrull.eu>2024-12-20 16:06:07 +0100
committerChristoph Müllner <christoph.muellner@vrull.eu>2024-12-20 21:05:05 +0100
commit0dc35fe5a095d9205da80cba976357cb71f8cb88 (patch)
tree200cec62f2e5af74e06f62afe80031f95ebad173 /gcc
parent7c50564627e42c619cc64c09cce8a42fd7932166 (diff)
downloadgcc-0dc35fe5a095d9205da80cba976357cb71f8cb88.zip
gcc-0dc35fe5a095d9205da80cba976357cb71f8cb88.tar.gz
gcc-0dc35fe5a095d9205da80cba976357cb71f8cb88.tar.bz2
testsuite: tree-ssa: Fix i686/-m32 fails for vector-*.c tests
FAILs have been reported for several tree-ssa vector-*.c tests on i686-linux or on x86_64-linux with -m32. This patch addresses these fails by setting the necessary -msse2 flags. This patch also streamlines all tests to use dg-options instead of dg-additional-options. This is in line with most other tests in gcc.dg/tree-ssa. Tested with the following board config in RUNTESTFLAGS: --target_board=unix\{-m64,-m32,-m32/-mno-mmx/-mno-sse} gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/satd-hadamard.c: Rename dg-additional-options to dg-options. * gcc.dg/tree-ssa/vector-10.c: Rename dg-additional-options to dg-options and add -msse2 to it. * gcc.dg/tree-ssa/vector-11.c: Likewise. * gcc.dg/tree-ssa/vector-8.c: Rename dg-additional-options to dg-options. * gcc.dg/tree-ssa/vector-9.c: Likewise. Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/satd-hadamard.c2
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/vector-10.c5
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/vector-11.c6
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/vector-8.c2
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/vector-9.c2
5 files changed, 8 insertions, 9 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/satd-hadamard.c b/gcc/testsuite/gcc.dg/tree-ssa/satd-hadamard.c
index 6042378..b0d4f4c 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/satd-hadamard.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/satd-hadamard.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-additional-options "-O3 -fdump-tree-forwprop4-details" } */
+/* { dg-options "-O3 -fdump-tree-forwprop4-details" } */
/* { dg-additional-options "-msse2" { target i?86-*-* x86_64-*-* } } */
#include <stdint.h>
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vector-10.c b/gcc/testsuite/gcc.dg/tree-ssa/vector-10.c
index bb1ed92..4a095a1 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/vector-10.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/vector-10.c
@@ -1,5 +1,6 @@
/* { dg-do compile } */
-/* { dg-additional-options "-O3 -fdump-tree-forwprop1-details -Wno-psabi" } */
+/* { dg-options "-O3 -fdump-tree-forwprop1-details -Wno-psabi" } */
+/* { dg-additional-options "-msse2" { target i?86-*-* x86_64-*-* } } */
typedef int vec __attribute__((vector_size (4 * sizeof (int))));
@@ -105,7 +106,7 @@ void f4 (vec *p_v_in_1, vec *p_v_out_1, vec *p_v_out_2)
v_y = v_1 - v_2;
v_out_1 = __builtin_shuffle (v_x, v_y, sel);
- /* Won't merge because of dependency. */
+ /* Won't blend because of dependency. */
v_in_2 = foo (v_out_1);
/* Second vec perm sequence. */
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vector-11.c b/gcc/testsuite/gcc.dg/tree-ssa/vector-11.c
index e4102d3..b1f0c74 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/vector-11.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/vector-11.c
@@ -1,5 +1,6 @@
/* { dg-do compile } */
-/* { dg-additional-options "-O3 -fdump-tree-forwprop1-details -Wno-psabi" } */
+/* { dg-options "-O3 -fdump-tree-forwprop1-details -Wno-psabi" } */
+/* { dg-additional-options "-msse2" { target i?86-*-* x86_64-*-* } } */
typedef int vec __attribute__((vector_size (4 * sizeof (int))));
@@ -27,9 +28,6 @@ void f1 (vec *p_v_in, vec *p_v_out_1, vec *p_v_out_2)
v_y = v_1 + v_2;
v_out_2 = __builtin_shuffle (v_y, v_x, sel);
- /* Won't blend because the narrowed sequence
- utilizes three of the four lanes. */
-
*p_v_out_1 = v_out_1;
*p_v_out_2 = v_out_2;
}
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vector-8.c b/gcc/testsuite/gcc.dg/tree-ssa/vector-8.c
index ba9a018..b7e0a52 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/vector-8.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/vector-8.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-additional-options "-O3 -fdump-tree-forwprop1-details" } */
+/* { dg-options "-O3 -fdump-tree-forwprop1-details" } */
/* { dg-additional-options "-msse2" { target i?86-*-* x86_64-*-* } } */
typedef int vec __attribute__((vector_size (4 * sizeof (int))));
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vector-9.c b/gcc/testsuite/gcc.dg/tree-ssa/vector-9.c
index 1aa2ef9..2fb2be6 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/vector-9.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/vector-9.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-additional-options "-O3 -fdump-tree-forwprop1-details" } */
+/* { dg-options "-O3 -fdump-tree-forwprop1-details" } */
/* { dg-additional-options "-msse2" { target i?86-*-* x86_64-*-* } } */
typedef int vec __attribute__((vector_size (4 * sizeof (int))));