From 1991282b0e0ebc9dd3daf38242da9d0ea7638d86 Mon Sep 17 00:00:00 2001 From: Mingjie Xing Date: Tue, 24 Aug 2010 03:22:07 +0000 Subject: [PATCH] check loongson targets in vect.exp From-SVN: r163495 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/g++.dg/vect/vect.exp | 7 +++++-- gcc/testsuite/gcc.dg/vect/vect.exp | 7 +++++-- gcc/testsuite/gfortran.dg/vect/vect.exp | 7 +++++-- 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2ad04f0c7ea..4518faa9739 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-08-24 Mingjie Xing + + * gcc.dg/vect/vect.exp: Check loongson targets + * g++.dg/vect/vect.exp: Likewise + * gfortran.dg/vect/vect.exp: Likewise + 2010-08-23 Michael Meissner * gcc.target/powerpc/vsx-mass-1.c: New file, test diff --git a/gcc/testsuite/g++.dg/vect/vect.exp b/gcc/testsuite/g++.dg/vect/vect.exp index fe173429a76..90ae38120b7 100644 --- a/gcc/testsuite/g++.dg/vect/vect.exp +++ b/gcc/testsuite/g++.dg/vect/vect.exp @@ -82,9 +82,12 @@ if [istarget "powerpc-*paired*"] { set dg-do-what-default compile } } elseif { [istarget "mips*-*-*"] - && [check_effective_target_mpaired_single] + && ([check_effective_target_mpaired_single] + || [check_effective_target_mips_loongson]) && [check_effective_target_nomips16] } { - lappend DEFAULT_VECTCFLAGS "-mpaired-single" + if { [check_effective_target_mpaired_single] } { + lappend DEFAULT_VECTCFLAGS "-mpaired-single" + } set dg-do-what-default run } elseif [istarget "sparc*-*-*"] { lappend DEFAULT_VECTCFLAGS "-mcpu=ultrasparc" "-mvis" diff --git a/gcc/testsuite/gcc.dg/vect/vect.exp b/gcc/testsuite/gcc.dg/vect/vect.exp index a68d8c65f6e..f50574038e8 100644 --- a/gcc/testsuite/gcc.dg/vect/vect.exp +++ b/gcc/testsuite/gcc.dg/vect/vect.exp @@ -74,9 +74,12 @@ if [istarget "powerpc-*paired*"] { set dg-do-what-default compile } } elseif { [istarget "mips*-*-*"] - && [check_effective_target_mpaired_single] + && ([check_effective_target_mpaired_single] + || [check_effective_target_mips_loongson]) && [check_effective_target_nomips16] } { - lappend DEFAULT_VECTCFLAGS "-mpaired-single" + if { [check_effective_target_mpaired_single] } { + lappend DEFAULT_VECTCFLAGS "-mpaired-single" + } set dg-do-what-default run } elseif [istarget "sparc*-*-*"] { lappend DEFAULT_VECTCFLAGS "-mcpu=ultrasparc" "-mvis" diff --git a/gcc/testsuite/gfortran.dg/vect/vect.exp b/gcc/testsuite/gfortran.dg/vect/vect.exp index 5783e929496..d261376e5fe 100644 --- a/gcc/testsuite/gfortran.dg/vect/vect.exp +++ b/gcc/testsuite/gfortran.dg/vect/vect.exp @@ -75,9 +75,12 @@ if [istarget "powerpc-*paired*"] { set dg-do-what-default compile } } elseif { [istarget "mips*-*-*"] - && [check_effective_target_mpaired_single] + && ([check_effective_target_mpaired_single] + || [check_effective_target_mips_loongson]) && [check_effective_target_nomips16] } { - lappend DEFAULT_VECTCFLAGS "-mpaired-single" + if { [check_effective_target_mpaired_single] } { + lappend DEFAULT_VECTCFLAGS "-mpaired-single" + } set dg-do-what-default run } elseif [istarget "sparc*-*-*"] { lappend DEFAULT_VECTCFLAGS "-mcpu=ultrasparc" "-mvis"