This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Fix gcc.target/i386/pr87955.c testcase


Hi!

The testcase doesn't emit expected diagnostics on i?86, because the default
is -mfpmath=387 there and so the function is perfectly inlinable.

The following patch makes sure we compile the testcase with -msse2 -mfpmath=sse
everywhere, so it succeeds (or FAILs with the ipa-inline.c change reverted)
on all x86 configurations the same.

Tested on x86_64-linux, committed to trunk as obvious.

2018-12-10  Jakub Jelinek  <jakub@redhat.com>

	PR ipa/87955
	* gcc.target/i386/pr87955.c: Add -msse2 -mfpmath=sse to dg-options.

--- gcc/testsuite/gcc.target/i386/pr87955.c.jj	2018-11-14 00:55:33.844621126 +0100
+++ gcc/testsuite/gcc.target/i386/pr87955.c	2018-12-10 14:23:07.713905223 +0100
@@ -1,4 +1,4 @@
-/* { dg-options "-O2 -fopt-info-inline-missed" } */
+/* { dg-options "-O2 -msse2 -mfpmath=sse -fopt-info-inline-missed" } */
 
 float a;
 

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]