summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/mips')
-rw-r--r--gcc/testsuite/gcc.target/mips/mips.exp3
-rw-r--r--gcc/testsuite/gcc.target/mips/scc-1.c3
-rw-r--r--gcc/testsuite/gcc.target/mips/scc-3.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.target/mips/mips.exp b/gcc/testsuite/gcc.target/mips/mips.exp
index bd8b5fa78d6..526bbdb14f2 100644
--- a/gcc/testsuite/gcc.target/mips/mips.exp
+++ b/gcc/testsuite/gcc.target/mips/mips.exp
@@ -373,6 +373,7 @@ proc dg-mips-options {args} {
setup_mips_tests
dg-init
+# MIPS16 is defined in add_options_for_mips16_attribute.
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c]] "" \
- "-DMIPS16=__attribute__((mips16)) -DNOMIPS16=__attribute__((nomips16))"
+ "-DNOMIPS16=__attribute__((nomips16))"
dg-finish
diff --git a/gcc/testsuite/gcc.target/mips/scc-1.c b/gcc/testsuite/gcc.target/mips/scc-1.c
index 443b0bf7d17..4bd4a4c2fb2 100644
--- a/gcc/testsuite/gcc.target/mips/scc-1.c
+++ b/gcc/testsuite/gcc.target/mips/scc-1.c
@@ -1,5 +1,6 @@
-/* { dg-do compile } */
+/* { dg-do compile { target mips16_attribute } } */
/* { dg-mips-options "-O -mips32" } */
+/* { dg-add-options mips16_attribute } */
/* { dg-final { scan-assembler-times {slt \$2,\$5,\$4} 1 } } */
/* { dg-final { scan-assembler-times {sltu \$2,\$5,\$4} 1 } } */
diff --git a/gcc/testsuite/gcc.target/mips/scc-3.c b/gcc/testsuite/gcc.target/mips/scc-3.c
index e496d401dd4..eb9d575f061 100644
--- a/gcc/testsuite/gcc.target/mips/scc-3.c
+++ b/gcc/testsuite/gcc.target/mips/scc-3.c
@@ -1,5 +1,6 @@
-/* { dg-do compile } */
+/* { dg-do compile { target mips16_attribute } } */
/* { dg-mips-options "-O -mabi=o64" } */
+/* { dg-add-options mips16_attribute } */
/* { dg-final { scan-assembler-not "and\t\|andi\t\|ext\t\|sll\t\|srl\t" } } */
/* { dg-final { scan-assembler-times "slt\t\|sltu\t" 8 } } */