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

login
register
mail settings
Submitter Uros Bizjak
Date Dec. 6, 2011, 6:50 p.m.
Message ID <CAFULd4ZuAdJ2PuEUQLKGfkOK6nbpOp5F+YTE0kUCTYfk79P+GQ@mail.gmail.com>
Download mbox | patch
Permalink /patch/129781/
State New
Headers show

Comments

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

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 ();