Commit 584cf8c7 by Richard Sandiford Committed by Richard Sandiford

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
parent 040af979
2012-02-07 Richard Sandiford <rdsandiford@googlemail.com> 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
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 <rdsandiford@googlemail.com>
PR target/52152 PR target/52152
* objc.dg/stabs-1.m: XFAIL for mips*-*-elf*. * objc.dg/stabs-1.m: XFAIL for mips*-*-elf*.
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
seem any good reason for it to, given that the Loongson processors seem any good reason for it to, given that the Loongson processors
do not support MIPS16. */ do not support MIPS16. */
/* { dg-options "isa=loongson -mhard-float -mno-mips16 -O1" } */ /* { 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 "loongson.h"
#include <assert.h> #include <assert.h>
......
...@@ -855,6 +855,15 @@ proc mips-dg-options { args } { ...@@ -855,6 +855,15 @@ proc mips-dg-options { args } {
# Information about this run. # Information about this run.
global mips_base_options 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. # Start out with the default option state.
array set options [array get mips_base_options] array set options [array get mips_base_options]
......
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