From fe55a82362706dc6453e7d9af16b3cbe8e0e9922 Mon Sep 17 00:00:00 2001 From: Andrew Bennett Date: Mon, 6 Jul 2015 14:16:14 +0000 Subject: [PATCH] MIPS: For micromips allow the near-far-3.c test to use the jals instruction to call near_func. testsuite/ * gcc.target/mips/near-far-3.c: Allow the call to near_func to use the jals instruction. From-SVN: r225457 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/mips/near-far-3.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a0324b50e5a..32959d5f2cd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-07-06 Andrew Bennett + + * gcc.target/mips/near-far-3.c: Allow the call to near_func to use + the jals instruction. + 2015-07-06 H.J. Lu PR target/53383 diff --git a/gcc/testsuite/gcc.target/mips/near-far-3.c b/gcc/testsuite/gcc.target/mips/near-far-3.c index d4d48b1ed53..e6af939e081 100644 --- a/gcc/testsuite/gcc.target/mips/near-far-3.c +++ b/gcc/testsuite/gcc.target/mips/near-far-3.c @@ -13,5 +13,5 @@ NOMIPS16 int test4 () { return normal_func (); } /* { dg-final { scan-assembler-not "\tj\tlong_call_func\n" } } */ /* { dg-final { scan-assembler-not "\tj\tfar_func\n" } } */ -/* { dg-final { scan-assembler "\tj(|al)\tnear_func\n" } } */ +/* { dg-final { scan-assembler "\tj(|al|als)\tnear_func\n" } } */ /* { dg-final { scan-assembler-not "\tj\tnormal_func\n" } } */ -- 2.30.2