===================================================================
@@ -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]
===================================================================
@@ -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 <assert.h>