[testsuite] : Fix g++.dg/opt/pr51396.C on non-x86 targets

Submitted by Uros Bizjak on Dec. 6, 2011, 6:50 p.m.

Details

Message ID CAFULd4ZuAdJ2PuEUQLKGfkOK6nbpOp5F+YTE0kUCTYfk79P+GQ@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak Dec. 6, 2011, 6:50 p.m.
Hello!

-mfma is valid only on x86 targets

2011-12-06  Uros Bizjak  <ubizjak@gmail.com>

	* g++.dg/opt/pr51396.C: Use dg-additional-options.

Tested on alphaev68-pc-linux-gnu, committed to mainline SVN.

Uros.

Patch hide | download patch | download mbox

Index: g++.dg/opt/pr51396.C
===================================================================
--- g++.dg/opt/pr51396.C	(revision 182054)
+++ g++.dg/opt/pr51396.C	(working copy)
@@ -1,7 +1,7 @@ 
 // PR tree-optimization/51396
 // { dg-do compile }
-// { dg-options "-O2 -fnon-call-exceptions -mfma" }
-// { dg-options "-O2 -fnon-call-exceptions -mfma" { target i?86-*-* x86_64-*-* } }
+// { dg-options "-O2 -fnon-call-exceptions" }
+// { dg-additional-options "-mfma" { target i?86-*-* x86_64-*-* } }
 
 double baz (double) throw ();