From: Richard Sandiford Date: Tue, 7 Feb 2012 19:23:35 +0000 (+0000) Subject: re PR target/52155 (loongson.h requires -flax-vector-conversions with newlib targets) X-Git-Tag: releases/gcc-4.7.0~529 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=584cf8c713c7fe137f478a4b4b9b09282a2f1f3c;p=thirdparty%2Fgcc.git re PR target/52155 (loongson.h requires -flax-vector-conversions with newlib targets) gcc/testsuite/ PR target/52155 * gcc.target/mips/mips.exp (mips-dg-options): Handle xfail and target. * gcc.target/mips/loongson-shift-count-truncated-1.c: Force -mlong64 for MIPS ELF. From-SVN: r183979 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index dd76e458327d..346aabcffe63 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2012-02-07 Richard Sandiford + + PR target/52155 + * gcc.target/mips/mips.exp (mips-dg-options): Handle xfail and target. + * gcc.target/mips/loongson-shift-count-truncated-1.c: Force -mlong64 + for MIPS ELF. + 2012-02-07 Richard Sandiford PR target/52152 diff --git a/gcc/testsuite/gcc.target/mips/loongson-shift-count-truncated-1.c b/gcc/testsuite/gcc.target/mips/loongson-shift-count-truncated-1.c index be52cf7dedca..1c892d806270 100644 --- a/gcc/testsuite/gcc.target/mips/loongson-shift-count-truncated-1.c +++ b/gcc/testsuite/gcc.target/mips/loongson-shift-count-truncated-1.c @@ -5,6 +5,8 @@ seem any good reason for it to, given that the Loongson processors do not support MIPS16. */ /* { dg-options "isa=loongson -mhard-float -mno-mips16 -O1" } */ +/* See PR 52155. */ +/* { dg-options "isa=loongson -mhard-float -mno-mips16 -O1 -mlong64" { mips*-*-elf* && ilp32 } } */ #include "loongson.h" #include diff --git a/gcc/testsuite/gcc.target/mips/mips.exp b/gcc/testsuite/gcc.target/mips/mips.exp index fd065ec9469c..1be2f1e372d9 100644 --- a/gcc/testsuite/gcc.target/mips/mips.exp +++ b/gcc/testsuite/gcc.target/mips/mips.exp @@ -855,6 +855,15 @@ proc mips-dg-options { args } { # Information about this run. global mips_base_options + if { [llength $args] >= 3 } { + switch { [dg-process-target [lindex $args 2]] } { + "S" { } + "N" { return } + "F" { error "[lindex $args 0]: `xfail' not allowed here" } + "P" { error "[lindex $args 0]: `xfail' not allowed here" } + } + } + # Start out with the default option state. array set options [array get mips_base_options]