diff mbox

[testsuite] MIPS: Force O32 ABI for inline-memcpy-3.c.

Message ID A614194ED15B4844BC4C9FB7F21FCD9270456262@hhmail02.hh.imgtec.org
State New
Headers show

Commit Message

Toma Tabacu March 1, 2017, 12:37 p.m. UTC
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.

Comments

Matthew Fortune March 6, 2017, 10:31 a.m. UTC | #1
Toma Tabacu <Toma.Tabacu@imgtec.com> writes:
> gcc/testsuite/
> 
> 	* gcc.target/mips/inline-memcpy-3.c (dg-options): Add -mabi=32.

OK, thanks. Sorry for the slow reply.

Matthew
Toma Tabacu March 6, 2017, 11:31 a.m. UTC | #2
> From: Matthew Fortune
> 
> Toma Tabacu writes:
> > gcc/testsuite/
> >
> > 	* gcc.target/mips/inline-memcpy-3.c (dg-options): Add -mabi=32.
> 
> OK, thanks. Sorry for the slow reply.
> 
> Matthew

Committed as r245914.

Thanks,
Toma
diff mbox

Patch

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 } } */