public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, testsuite]: Use -mfpmath=sse in gcc.target/i386/sse4_1-round-roundeven-?.c tests
@ 2019-08-27 19:02 Uros Bizjak
  0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2019-08-27 19:02 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 342 bytes --]

Fix 32bit testing, where -mfpmath=387 is the default.

2019-08-27  Uroš Bizjak  <ubizjak@gmail.com>

    * gcc.target/i386/sse4_1-round-roundeven-1.c (dg-options):
    Add -mfpmath=sse.
    * gcc.target/i386/sse4_1-round-roundeven-2.c (dg-options): Ditto.

Tested on x86_64-linux-gnu {,-m32}.

Committed to mainline SVN.

Uros.

[-- Attachment #2: t.diff.txt --]
[-- Type: text/plain, Size: 914 bytes --]

Index: gcc.target/i386/sse4_1-round-roundeven-1.c
===================================================================
--- gcc.target/i386/sse4_1-round-roundeven-1.c	(revision 274961)
+++ gcc.target/i386/sse4_1-round-roundeven-1.c	(working copy)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -msse4.1" } */
+/* { dg-options "-O2 -msse4.1 -mfpmath=sse" } */
 
 __attribute__((noinline, noclone)) double
 f1 (double x)
Index: gcc.target/i386/sse4_1-round-roundeven-2.c
===================================================================
--- gcc.target/i386/sse4_1-round-roundeven-2.c	(revision 274961)
+++ gcc.target/i386/sse4_1-round-roundeven-2.c	(working copy)
@@ -1,6 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target sse4 } */
-/* { dg-options "-O2 -msse4.1" } */
+/* { dg-options "-O2 -msse4.1 -mfpmath=sse" } */
 
 #include "sse4_1-check.h"
 #include "sse4_1-round-roundeven-1.c"

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

only message in thread, other threads:[~2019-08-27 17:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-27 19:02 [PATCH, testsuite]: Use -mfpmath=sse in gcc.target/i386/sse4_1-round-roundeven-?.c tests Uros Bizjak

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).