This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Add mips16_attribute to gcc.target/mips/scc-[13].c
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 10 May 2008 13:08:26 +0100
- Subject: [committed] Add mips16_attribute to gcc.target/mips/scc-[13].c
The tests in $subject are failing for PIC targets because we don't
support MIPS16 PIC.
/* { dg-do compile { target mips16_attribute } } */
makes sure we can force a compilation mode that accepts "mips16"
attributes (such as "-mno-abicalls") and
/* { dg-add-options mips16_attribute } */
does the forcing.
Tested on mips64el-linux-gnu and applied.
Richard
gcc/testsuite/
* gcc.target/mips/scc-1.c: Require mips16_attribute, and add
the associated options.
* gcc.target/mips/scc-3.c: Likewise.
Index: gcc/testsuite/gcc.target/mips/scc-1.c
===================================================================
--- gcc/testsuite/gcc.target/mips/scc-1.c 2008-05-09 18:35:43.000000000 +0100
+++ gcc/testsuite/gcc.target/mips/scc-1.c 2008-05-09 18:36:10.000000000 +0100
@@ -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 } } */
Index: gcc/testsuite/gcc.target/mips/scc-3.c
===================================================================
--- gcc/testsuite/gcc.target/mips/scc-3.c 2008-05-09 18:35:43.000000000 +0100
+++ gcc/testsuite/gcc.target/mips/scc-3.c 2008-05-09 18:36:10.000000000 +0100
@@ -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 } } */