From 28d08ad204087e2c9e979d8dc94daba7ac4c63a3 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sun, 24 Feb 2019 22:41:55 +0000 Subject: [PATCH] i386: Compile PR target/87007 tests with -mfpmath=sse -mfpmath=sse is needed to enable SSE for FP math in 32-bit. PR target/87007 * gcc.target/i386/pr87007-1.c: Compile with -mfpmath=sse. * gcc.target/i386/pr87007-2.c: Likewise. From-SVN: r269178 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/i386/pr87007-1.c | 2 +- gcc/testsuite/gcc.target/i386/pr87007-2.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 804cf456fe4..39d7ab5d9d7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-02-24 H.J. Lu + + PR target/87007 + * gcc.target/i386/pr87007-1.c: Compile with -mfpmath=sse. + * gcc.target/i386/pr87007-2.c: Likewise. + 2019-02-24 Harald Anlauf PR fortran/89266 diff --git a/gcc/testsuite/gcc.target/i386/pr87007-1.c b/gcc/testsuite/gcc.target/i386/pr87007-1.c index 93cf1dcdfa5..616a70c834a 100644 --- a/gcc/testsuite/gcc.target/i386/pr87007-1.c +++ b/gcc/testsuite/gcc.target/i386/pr87007-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -march=skylake" } */ +/* { dg-options "-O2 -march=skylake -mfpmath=sse" } */ extern float f; extern double d; diff --git a/gcc/testsuite/gcc.target/i386/pr87007-2.c b/gcc/testsuite/gcc.target/i386/pr87007-2.c index cca7ae7afbc..fc0b3f5d56f 100644 --- a/gcc/testsuite/gcc.target/i386/pr87007-2.c +++ b/gcc/testsuite/gcc.target/i386/pr87007-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -march=skylake" } */ +/* { dg-options "-O2 -march=skylake -mfpmath=sse" } */ extern float f; extern double d; -- 2.30.2