This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH,testsuite] MIPS: Force O32 ABI for inline-memcpy-3.c.
- From: Toma Tabacu <Toma dot Tabacu at imgtec dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: "catherine_moore at mentor dot com" <catherine_moore at mentor dot com>, Matthew Fortune <Matthew dot Fortune at imgtec dot com>
- Date: Wed, 1 Mar 2017 12:37:09 +0000
- Subject: [PATCH,testsuite] MIPS: Force O32 ABI for inline-memcpy-3.c.
- Authentication-results: sourceware.org; auth=none
Hi,
inline-memcpy-3.c fails when using -mabi=n64 and -mabi=n32 as a test-run option
because it does not impose a specific ABI in its test options.
As there already are variants of this test which force a specific ABI (N64 in
inline-memcpy-4.c and N32 in inline-memcpy-5.c), inline-memcpy-3.c should also
do so with the O32 ABI.
This patch forces the O32 ABI for this test by adding "-mabi=32" to the test
options.
Regards,
Toma
gcc/testsuite/
* gcc.target/mips/inline-memcpy-3.c (dg-options): Add -mabi=32.
diff --git a/gcc/testsuite/gcc.target/mips/inline-memcpy-3.c b/gcc/testsuite/gcc.target/mips/inline-memcpy-3.c
index 3bdb28b..a449107 100644
--- a/gcc/testsuite/gcc.target/mips/inline-memcpy-3.c
+++ b/gcc/testsuite/gcc.target/mips/inline-memcpy-3.c
@@ -1,4 +1,4 @@
-/* { dg-options "-fno-common isa_rev<=5 (REQUIRES_STDLIB)" } */
+/* { dg-options "-fno-common isa_rev<=5 -mabi=32 (REQUIRES_STDLIB)" } */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" "-Os"} { "" } } */
/* { dg-final { scan-assembler-not "\tmemcpy" } } */
/* { dg-final { scan-assembler-times "swl" 8 } } */