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

Richard Sandiford rdsandiford@googlemail.com
Mon Dec 19 22:07:00 GMT 2011


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.

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" } } */



More information about the Gcc-patches mailing list