public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] Fix gcc.target/i386/pr87955.c testcase
@ 2018-12-10 13:32 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2018-12-10 13:32 UTC (permalink / raw)
  To: gcc-patches; +Cc: David Malcolm

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

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

only message in thread, other threads:[~2018-12-10 13:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-10 13:32 [committed] Fix gcc.target/i386/pr87955.c testcase 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).