diff mbox

[committed] Run gcc.target/mips/mult-1.c at -O2

Message ID 87liq88cdf.fsf@firetop.home
State New
Headers show

Commit Message

Richard Sandiford Dec. 19, 2011, 9:45 p.m. UTC
As per the subject.  This test now relies on the tree-level widening
multiplication optimisation, which only runs at -O2 and above.
(It used to happen in expand instead.)

Tested on mips-sde-elf and applied.

Richard


gcc/testsuite/
	* gcc.target/mips/mult-1.c: Require -O2.
diff mbox

Patch

Index: gcc/testsuite/gcc.target/mips/mult-1.c
===================================================================
--- gcc/testsuite/gcc.target/mips/mult-1.c	2011-12-17 19:28:33.000000000 +0000
+++ gcc/testsuite/gcc.target/mips/mult-1.c	2011-12-17 20:22:08.000000000 +0000
@@ -1,6 +1,6 @@ 
 /* For SI->DI widening multiplication we should use DINS to combine the two
    halves.  For Octeon use DMUL with explicit widening.  */
-/* { dg-options "-O -mgp64 isa_rev>=2 forbid_cpu=octeon.*" } */
+/* { dg-options "-O2 -mgp64 isa_rev>=2 forbid_cpu=octeon.*" } */
 /* { dg-final { scan-assembler "\tdins\t" } } */
 /* { dg-final { scan-assembler-not "\tdsll\t" } } */
 /* { dg-final { scan-assembler-not "\tdsrl\t" } } */