diff mbox series

[testsuite] Small tweaks for Visium

Message ID 2258884.UMUkoKIVAr@polaris
State New
Headers show
Series [testsuite] Small tweaks for Visium | expand

Commit Message

Eric Botcazou Feb. 15, 2019, 10:51 a.m. UTC
The only interesting one is gcc.dg/tree-ssa/pr84859.c: for it to pass, the 
undocumented -ftree-cselim must be enabled, which is done automatically only 
on targets with conditional moves, what the Visium is not.

Tested on visium-elf, applied on the mainline and 8 branch.


2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>

	* c-c++-common/patchable_function_entry-decl.c: Do not run on Visium.
	* c-c++-common/patchable_function_entry-default.c: Likewise.
	* c-c++-common/patchable_function_entry-definition.c: Likewise.
	* gcc.dg/tree-ssa/pr84859.c: Add -ftree-cselim switch.
diff mbox series

Patch

Index: c-c++-common/patchable_function_entry-decl.c
===================================================================
--- c-c++-common/patchable_function_entry-decl.c	(revision 268849)
+++ c-c++-common/patchable_function_entry-decl.c	(working copy)
@@ -1,6 +1,5 @@ 
-/* { dg-do compile { target { ! nvptx*-*-* } } } */
+/* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
 /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
-/* { dg-additional-options "-mcpu=gr6" { target visium-*-* } }
 /* { dg-final { scan-assembler-times "nop|NOP" 2 { target { ! { alpha*-*-* } } } } } */
 /* { dg-final { scan-assembler-times "bis" 2 { target alpha*-*-* } } } */
 
Index: c-c++-common/patchable_function_entry-default.c
===================================================================
--- c-c++-common/patchable_function_entry-default.c	(revision 268849)
+++ c-c++-common/patchable_function_entry-default.c	(working copy)
@@ -1,6 +1,5 @@ 
-/* { dg-do compile { target { ! nvptx*-*-* } } } */
+/* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
 /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
-/* { dg-additional-options "-mcpu=gr6" { target visium-*-* } }
 /* { dg-final { scan-assembler-times "nop|NOP" 3 { target { ! { alpha*-*-* } } } } } */
 /* { dg-final { scan-assembler-times "bis" 3 { target alpha*-*-* } } } */
 
Index: c-c++-common/patchable_function_entry-definition.c
===================================================================
--- c-c++-common/patchable_function_entry-definition.c	(revision 268849)
+++ c-c++-common/patchable_function_entry-definition.c	(working copy)
@@ -1,6 +1,5 @@ 
-/* { dg-do compile { target { ! nvptx*-*-* } } } */
+/* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
 /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
-/* { dg-additional-options "-mcpu=gr6" { target visium-*-* } }
 /* { dg-final { scan-assembler-times "nop|NOP" 1 { target { ! { alpha*-*-* } } } } } */
 /* { dg-final { scan-assembler-times "bis" 1 { target alpha*-*-* } } } */
 Index: gcc.dg/tree-ssa/pr84859.c
===================================================================
--- gcc.dg/tree-ssa/pr84859.c	(revision 268849)
+++ gcc.dg/tree-ssa/pr84859.c	(working copy)
@@ -1,5 +1,5 @@ 
 /* { dg-do compile } */
-/* { dg-options "-O2 -Warray-bounds -fdump-tree-phiopt2" } */
+/* { dg-options "-O2 -ftree-cselim -Warray-bounds -fdump-tree-phiopt2" } */
 
 void
 h (const void *p, unsigned n)