From d3fca0b5d450cea85fba81558f8faa8486d99e69 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Sat, 24 Jul 2010 01:51:53 +0000 Subject: gas/ * config/tc-mips.c (macro)[M_JAL_1, M_JAL_2]: Handle the JALR delay slot in the noreorder mode with the o32 ABI. gas/testsuite/ * gas/mips/jal-svr4pic-noreorder.d: New test case. * gas/mips/mips1@jal-svr4pic-noreorder.d: New test subarchitecture. * gas/mips/r3000@jal-svr4pic-noreorder.d: Likewise. * gas/mips/jal-svr4pic-noreorder.s: Source for the new test case. * gas/mips/mips.exp: Run the new test case. --- gas/config/tc-mips.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gas/config/tc-mips.c') diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 21aedd9..103ab6f 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -6219,6 +6219,8 @@ macro (struct mips_cl_insn *ip) /* Quiet this warning. */ mips_cprestore_valid = 1; } + if (mips_opts.noreorder) + macro_build (NULL, "nop", ""); expr1.X_add_number = mips_cprestore_offset; macro_build_ldst_constoffset (&expr1, ADDRESS_LOAD_INSN, mips_gp_register, -- cgit v1.1