From: Andrew Bennett Date: Fri, 29 Jan 2016 13:54:53 +0000 (+0000) Subject: p5600-bonding.c (dg-options): Force the test to be always built for p5600. X-Git-Tag: upstream/12.2.0~49090 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=401116b5a4bb707dd261b933c68807147f4158cf;p=platform%2Fupstream%2Fgcc.git p5600-bonding.c (dg-options): Force the test to be always built for p5600. testsuite/ 2016-01-29 Andrew Bennett * gcc.target/mips/p5600-bonding.c (dg-options): Force the test to be always built for p5600. * gcc.target/mips/mips.exp (mips-dg-options): Add support for the isa=p5600 dg-option. From-SVN: r232980 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6b2ddbd..6a279eb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2016-01-29 Andrew Bennett + + * gcc.target/mips/p5600-bonding.c (dg-options): Force the test to be + always built for p5600. + * gcc.target/mips/mips.exp (mips-dg-options): Add support for the + isa=p5600 dg-option. + 2016-01-29 Richard Biener PR tree-optimization/69547 diff --git a/gcc/testsuite/gcc.target/mips/mips.exp b/gcc/testsuite/gcc.target/mips/mips.exp index ff9c99a..3258105 100644 --- a/gcc/testsuite/gcc.target/mips/mips.exp +++ b/gcc/testsuite/gcc.target/mips/mips.exp @@ -142,6 +142,9 @@ # isa=loongson # select a Loongson processor # +# isa=p5600 +# select a P5600 processor +# # addressing=absolute # force absolute addresses to be used # @@ -1011,6 +1014,10 @@ proc mips-dg-options { args } { if { ![regexp {^-march=loongson} $arch] } { set arch "-march=loongson2f" } + } elseif { [string equal $spec "isa=p5600"] } { + if { ![regexp {^-march=p5600} $arch] } { + set arch "-march=p5600" + } } else { if { ![regexp {^(isa(?:|_rev))(=|<=|>=)([0-9]*)$} \ $spec dummy prop relation value nocpus] } { diff --git a/gcc/testsuite/gcc.target/mips/p5600-bonding.c b/gcc/testsuite/gcc.target/mips/p5600-bonding.c index 0890ffa..0bc6d91 100644 --- a/gcc/testsuite/gcc.target/mips/p5600-bonding.c +++ b/gcc/testsuite/gcc.target/mips/p5600-bonding.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-dp -mtune=p5600 -mno-micromips -mno-mips16" } */ +/* { dg-options "-dp isa=p5600 -mtune=p5600 -mno-micromips -mno-mips16" } */ /* { dg-skip-if "Bonding needs peephole optimization." { *-*-* } { "-O0" "-O1" } { "" } } */ typedef int VINT32 __attribute__ ((vector_size((16))));