public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [testsuite] arm thumb tests: remove -march= and dg-prune-output from 9 tests
@ 2011-07-06 23:31 Janis Johnson
  2011-07-07 16:46 ` Richard Earnshaw
  0 siblings, 1 reply; 2+ messages in thread
From: Janis Johnson @ 2011-07-06 23:31 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 290 bytes --]

This patch removes -march= from nine tests that also check for relevant
effective targets.  If -march is removed there is no need to ignore
compiler warnings about conflicting options with dg-prune-output, so the
patch removes that from the tests.

OK for trunk, and for 4.6 in a few days?

[-- Attachment #2: gcc-20110706-4 --]
[-- Type: text/plain, Size: 5461 bytes --]

2011-07-06  Janis Johnson  <janisjo@codesourcery.com>

	* gcc.target/arm/pr39839.c: Remove -march option and unneeded
	dg-prune-output.
	* gcc.target/arm/pr40657-2.c: Likewise.
	* gcc.target/arm/pr40956.c: Likewise.
	* gcc.target/arm/pr42235.c: Likewise.
	* gcc.target/arm/pr42495.c: Likewise.
	* gcc.target/arm/pr42505.c: Likewise.
	* gcc.target/arm/pr42574.c: Likewise.
	* gcc.target/arm/pr46934.c: Likewise.
	* gcc.target/arm/thumb-branch1.c: Likewise.

Index: gcc.target/arm/pr39839.c
===================================================================
--- gcc.target/arm/pr39839.c	(revision 175921)
+++ gcc.target/arm/pr39839.c	(working copy)
@@ -1,6 +1,5 @@
-/* { dg-options "-mthumb -Os -march=armv5te -mthumb-interwork -fpic" }  */
+/* { dg-options "-mthumb -Os -mthumb-interwork -fpic" }  */
 /* { dg-require-effective-target arm_thumb1_ok } */
-/* { dg-prune-output "switch .* conflicts with" } */
 /* { dg-final { scan-assembler-not "str\[\\t \]*r.,\[\\t \]*.sp," } } */
 
 struct S
Index: gcc.target/arm/pr40657-2.c
===================================================================
--- gcc.target/arm/pr40657-2.c	(revision 175921)
+++ gcc.target/arm/pr40657-2.c	(working copy)
@@ -1,6 +1,5 @@
-/* { dg-options "-Os -march=armv4t -mthumb" }  */
+/* { dg-options "-Os -mthumb" }  */
 /* { dg-require-effective-target arm_thumb1_ok } */
-/* { dg-prune-output "switch .* conflicts with" } */
 /* { dg-final { scan-assembler-not "sub\[\\t \]*sp,\[\\t \]*sp" } } */
 /* { dg-final { scan-assembler-not "add\[\\t \]*sp,\[\\t \]*sp" } } */
 
Index: gcc.target/arm/pr40956.c
===================================================================
--- gcc.target/arm/pr40956.c	(revision 175921)
+++ gcc.target/arm/pr40956.c	(working copy)
@@ -1,7 +1,6 @@
-/* { dg-options "-mthumb -Os -fpic -march=armv5te" }  */
+/* { dg-options "-mthumb -Os -fpic" }  */
 /* { dg-require-effective-target arm_thumb1_ok } */
 /* { dg-require-effective-target fpic } */
-/* { dg-prune-output "switch .* conflicts with" } */
 /* Make sure the constant "0" is loaded into register only once.  */
 /* { dg-final { scan-assembler-times "mov\[\\t \]*r., #0" 1 } } */
 
Index: gcc.target/arm/pr42235.c
===================================================================
--- gcc.target/arm/pr42235.c	(revision 175921)
+++ gcc.target/arm/pr42235.c	(working copy)
@@ -1,6 +1,5 @@
-/* { dg-options "-mthumb -O2 -march=armv5te" }  */
+/* { dg-options "-mthumb -O2" }  */
 /* { dg-require-effective-target arm_thumb1_ok } */
-/* { dg-prune-output "switch .* conflicts with" } */
 /* { dg-final { scan-assembler-not "add\[\\t \]*r.,\[\\t \]*r.,\[\\t \]*\#1" } } */
 /* { dg-final { scan-assembler-not "add\[\\t \]*r.,\[\\t \]*\#1" } } */
 
Index: gcc.target/arm/pr42495.c
===================================================================
--- gcc.target/arm/pr42495.c	(revision 175921)
+++ gcc.target/arm/pr42495.c	(working copy)
@@ -1,7 +1,6 @@
-/* { dg-options "-mthumb -Os -fpic -march=armv5te -fdump-rtl-hoist" }  */
+/* { dg-options "-mthumb -Os -fpic -fdump-rtl-hoist" }  */
 /* { dg-require-effective-target arm_thumb1_ok } */
 /* { dg-require-effective-target fpic } */
-/* { dg-prune-output "switch .* conflicts with" } */
 /* Make sure all calculations of gObj's address get hoisted to one location.  */
 /* { dg-final { scan-rtl-dump "PRE/HOIST: end of bb .* copying expression" "hoist" } } */
 
Index: gcc.target/arm/pr42505.c
===================================================================
--- gcc.target/arm/pr42505.c	(revision 175921)
+++ gcc.target/arm/pr42505.c	(working copy)
@@ -1,6 +1,5 @@
-/* { dg-options "-mthumb -Os -march=armv5te" }  */
+/* { dg-options "-mthumb -Os" }  */
 /* { dg-require-effective-target arm_thumb1_ok } */
-/* { dg-prune-output "switch .* conflicts with" } */
 /* { dg-final { scan-assembler-not "str\[\\t \]*r.,\[\\t \]*.sp," } } */
 
 struct A {
Index: gcc.target/arm/pr42574.c
===================================================================
--- gcc.target/arm/pr42574.c	(revision 175921)
+++ gcc.target/arm/pr42574.c	(working copy)
@@ -1,7 +1,6 @@
-/* { dg-options "-mthumb -Os -fpic -march=armv5te" }  */
+/* { dg-options "-mthumb -Os -fpic" }  */
 /* { dg-require-effective-target arm_thumb1_ok } */
 /* { dg-require-effective-target fpic } */
-/* { dg-prune-output "switch .* conflicts with" } */
 /* Make sure the address of glob.c is calculated only once and using
    a logical shift for the offset (200<<1).  */
 /* { dg-final { scan-assembler-times "lsl" 1 } } */
Index: gcc.target/arm/pr46934.c
===================================================================
--- gcc.target/arm/pr46934.c	(revision 175921)
+++ gcc.target/arm/pr46934.c	(working copy)
@@ -1,7 +1,6 @@
 /* { dg-do compile } */
-/* { dg-options "-march=armv5te -mthumb -Os" }  */
+/* { dg-options "-mthumb -Os" }  */
 /* { dg-require-effective-target arm_thumb1_ok } */
-/* { dg-prune-output "switch .* conflicts with" } */
 
 int caller (unsigned int reg_type)
 {
Index: gcc.target/arm/thumb-branch1.c
===================================================================
--- gcc.target/arm/thumb-branch1.c	(revision 175921)
+++ gcc.target/arm/thumb-branch1.c	(working copy)
@@ -1,7 +1,6 @@
 /* { dg-do compile } */
 /* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */
-/* { dg-options "-Os -mthumb -march=armv5te" } */
-/* { dg-prune-output "switch .* conflicts with" } */
+/* { dg-options "-Os -mthumb" } */
 
 int returnbool(int a, int b)
 {

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [testsuite] arm thumb tests: remove -march= and dg-prune-output from 9 tests
  2011-07-06 23:31 [testsuite] arm thumb tests: remove -march= and dg-prune-output from 9 tests Janis Johnson
@ 2011-07-07 16:46 ` Richard Earnshaw
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Earnshaw @ 2011-07-07 16:46 UTC (permalink / raw)
  To: Janis Johnson; +Cc: gcc-patches

On 07/07/11 00:28, Janis Johnson wrote:
> This patch removes -march= from nine tests that also check for relevant
> effective targets.  If -march is removed there is no need to ignore
> compiler warnings about conflicting options with dg-prune-output, so the
> patch removes that from the tests.
> 
> OK for trunk, and for 4.6 in a few days?
> 
> 
> gcc-20110706-4
> 
> 
> 2011-07-06  Janis Johnson  <janisjo@codesourcery.com>
> 
> 	* gcc.target/arm/pr39839.c: Remove -march option and unneeded
> 	dg-prune-output.
> 	* gcc.target/arm/pr40657-2.c: Likewise.
> 	* gcc.target/arm/pr40956.c: Likewise.
> 	* gcc.target/arm/pr42235.c: Likewise.
> 	* gcc.target/arm/pr42495.c: Likewise.
> 	* gcc.target/arm/pr42505.c: Likewise.
> 	* gcc.target/arm/pr42574.c: Likewise.
> 	* gcc.target/arm/pr46934.c: Likewise.
> 	* gcc.target/arm/thumb-branch1.c: Likewise.
> 
> Index: gcc.target/arm/pr39839.c
> ===================================================================
> --- gcc.target/arm/pr39839.c	(revision 175921)
> +++ gcc.target/arm/pr39839.c	(working copy)
> @@ -1,6 +1,5 @@
> -/* { dg-options "-mthumb -Os -march=armv5te -mthumb-interwork -fpic" }  */
> +/* { dg-options "-mthumb -Os -mthumb-interwork -fpic" }  */
>  /* { dg-require-effective-target arm_thumb1_ok } */
> -/* { dg-prune-output "switch .* conflicts with" } */
>  /* { dg-final { scan-assembler-not "str\[\\t \]*r.,\[\\t \]*.sp," } } */
>  

I think this test should work in both ARM and Thumb mode and for any
Thumb variant.  So I'd be inclined to remove arm_thumb1_ok and change
the dg-options to "-Os -fpic".

> Index: gcc.target/arm/pr40657-2.c

OK.


> Index: gcc.target/arm/pr40956.c
> ===================================================================
> --- gcc.target/arm/pr40956.c	(revision 175921)
> +++ gcc.target/arm/pr40956.c	(working copy)
> @@ -1,7 +1,6 @@
> -/* { dg-options "-mthumb -Os -fpic -march=armv5te" }  */
> +/* { dg-options "-mthumb -Os -fpic" }  */
>  /* { dg-require-effective-target arm_thumb1_ok } */
>  /* { dg-require-effective-target fpic } */
> -/* { dg-prune-output "switch .* conflicts with" } */
>  /* Make sure the constant "0" is loaded into register only once.  */
>  /* { dg-final { scan-assembler-times "mov\[\\t \]*r., #0" 1 } } */
>  

Same comment as for pr39839.c

> Index: gcc.target/arm/pr42235.c

OK.

> Index: gcc.target/arm/pr42495.c

OK.

> Index: gcc.target/arm/pr42505.c
> ===================================================================
> --- gcc.target/arm/pr42505.c	(revision 175921)
> +++ gcc.target/arm/pr42505.c	(working copy)
> @@ -1,6 +1,5 @@
> -/* { dg-options "-mthumb -Os -march=armv5te" }  */
> +/* { dg-options "-mthumb -Os" }  */
>  /* { dg-require-effective-target arm_thumb1_ok } */
> -/* { dg-prune-output "switch .* conflicts with" } */
>  /* { dg-final { scan-assembler-not "str\[\\t \]*r.,\[\\t \]*.sp," } } */
>  

Same comment as for pr39839.c

> Index: gcc.target/arm/pr42574.c

OK

> Index: gcc.target/arm/pr46934.c

There's nothing cpu specific here, this should be in gcc.c-torture/compile.

> Index: gcc.target/arm/thumb-branch1.c

OK.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-07 16:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-06 23:31 [testsuite] arm thumb tests: remove -march= and dg-prune-output from 9 tests Janis Johnson
2011-07-07 16:46 ` Richard Earnshaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).