Commit 57647020 by Janis Johnson Committed by Janis Johnson

pr32000-2.c: Use dg-skip-if for target expression.

	* gcc.target/i386/pr32000-2.c: Use dg-skip-if for target expression.
	* gcc.target/i386/stackalign/return-3.c: Ditto.
	* gcc.target/sparc/ultrasp3.c: Ditto.
	* lib/target-supports-dg.exp (dg-require-effective-target): Error
	if argument is not a single effective-target keyword.

From-SVN: r139039
parent e1765251
2008-08-12 Janis Johnson <janis187@us.ibm.com> 2008-08-12 Janis Johnson <janis187@us.ibm.com>
* gcc.target/i386/pr32000-2.c: Use dg-skip-if for target expression.
* gcc.target/i386/stackalign/return-3.c: Ditto.
* gcc.target/sparc/ultrasp3.c: Ditto.
* lib/target-supports-dg.exp (dg-require-effective-target): Error
if argument is not a single effective-target keyword.
PR testsuite/36087 PR testsuite/36087
* gcc.dg/var-expand3.c: Fix name of dump file. * gcc.dg/var-expand3.c: Fix name of dump file.
......
/* { dg-do run } */ /* { dg-do run } */
/* { dg-require-effective-target ilp32 && dfp } */ /* { dg-skip-if "" { ! { ilp32 && dfp } } } */
/* { dg-options "-O -msse2 -std=gnu99 -mpreferred-stack-boundary=2" } */ /* { dg-options "-O -msse2 -std=gnu99 -mpreferred-stack-boundary=2" } */
#include "sse2-check.h" #include "sse2-check.h"
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target ilp32 && dfp } */ /* { dg-skip-if "" { ! { ilp32 && dfp } } } */
/* { dg-options "-msse -std=gnu99 -mpreferred-stack-boundary=2" } */ /* { dg-options "-msse -std=gnu99 -mpreferred-stack-boundary=2" } */
/* This compile only test is to detect an assertion failure in stack branch /* This compile only test is to detect an assertion failure in stack branch
......
/* { dg-do run } */ /* { dg-do run } */
/* { dg-require-effective-target ilp32 && ultrasparc_hw } */ /* { dg-skip-if "" { ! { ilp32 && ultrasparc_hw } } } */
/* { dg-options "-mcpu=ultrasparc -mv8plus" } */ /* { dg-options "-mcpu=ultrasparc -mv8plus" } */
extern void abort (void); extern void abort (void);
......
...@@ -117,6 +117,9 @@ proc dg-require-named-sections { args } { ...@@ -117,6 +117,9 @@ proc dg-require-named-sections { args } {
proc dg-require-effective-target { args } { proc dg-require-effective-target { args } {
set args [lreplace $args 0 0] set args [lreplace $args 0 0]
if { [llength $args] != 1 } {
error "syntax error, need a single effective-target keyword"
}
if { ![is-effective-target [lindex $args 0]] } { if { ![is-effective-target [lindex $args 0]] } {
upvar dg-do-what dg-do-what upvar dg-do-what dg-do-what
set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"] set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment