public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8515] testsuite: Fix up pr113622-{2, 3}.c for i686-linux [PR113622]
@ 2024-01-30  8:34 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2024-01-30  8:34 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:47b81161c98cf2ff5495d4aa6386cc3c87f9d27b

commit r14-8515-g47b81161c98cf2ff5495d4aa6386cc3c87f9d27b
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue Jan 30 09:31:22 2024 +0100

    testsuite: Fix up pr113622-{2,3}.c for i686-linux [PR113622]
    
    The 2 new tests FAIL for me on i686-linux:
    .../gcc/testsuite/gcc.target/i386/pr113622-2.c:5:14: error: data type of 'a' isn't suitable for a register
    .../gcc/testsuite/gcc.target/i386/pr113622-2.c:5:29: error: data type of 'b' isn't suitable for a register
    .../gcc/testsuite/gcc.target/i386/pr113622-2.c:5:44: error: data type of 'c' isn't suitable for a register
    The problem is that the tests use vectors of double, something added
    only in SSE2, while the testcases ask for just -msse which only provides
    vectors of floats.
    
    So, either it should be using floats instead of doubles, or we need
    to add -msse2 to dg-options.
    
    I've done the latter.
    
    2024-01-30  Jakub Jelinek  <jakub@redhat.com>
    
            PR middle-end/113622
            * gcc.target/i386/pr113622-2.c: Use -msse2 instead of -msse in
            dg-options.
            * gcc.target/i386/pr113622-3.c: Likewise.

Diff:
---
 gcc/testsuite/gcc.target/i386/pr113622-2.c | 2 +-
 gcc/testsuite/gcc.target/i386/pr113622-3.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.target/i386/pr113622-2.c b/gcc/testsuite/gcc.target/i386/pr113622-2.c
index 7bcc12af27e1..669688a6c935 100644
--- a/gcc/testsuite/gcc.target/i386/pr113622-2.c
+++ b/gcc/testsuite/gcc.target/i386/pr113622-2.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-msse -w" } */
+/* { dg-options "-msse2 -w" } */
 
 typedef double __attribute__ ((vector_size (16))) vec;
 register vec a asm("xmm5"), b asm("xmm6"), c asm("xmm7");
diff --git a/gcc/testsuite/gcc.target/i386/pr113622-3.c b/gcc/testsuite/gcc.target/i386/pr113622-3.c
index ca79d4ac901b..d062b047c686 100644
--- a/gcc/testsuite/gcc.target/i386/pr113622-3.c
+++ b/gcc/testsuite/gcc.target/i386/pr113622-3.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-msse" } */
+/* { dg-options "-msse2" } */
 
 typedef double __attribute__ ((vector_size (16))) vec;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-30  8:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-30  8:34 [gcc r14-8515] testsuite: Fix up pr113622-{2, 3}.c for i686-linux [PR113622] Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).