From 570de99165f5eb094f2b2a0ba84bae3fd53032ee Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 22 Jul 2008 10:44:51 +0000 Subject: [PATCH] * config/tc-mips.c (mips_ip): Reset s to argsStart. * gas/mips/tls-ill.l: Update error message. * gas/mips/octeon-ill.l: Likewise. --- gas/ChangeLog | 4 ++++ gas/config/tc-mips.c | 2 +- gas/testsuite/ChangeLog | 5 +++++ gas/testsuite/gas/mips/octeon-ill.l | 4 ++-- gas/testsuite/gas/mips/tls-ill.l | 8 ++++---- 5 files changed, 16 insertions(+), 7 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 1e698a99a3f..a4862286bbf 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2008-07-22 Chao-ying Fu + + * config/tc-mips.c (mips_ip): Reset s to argsStart. + 2008-07-22 Jie Zhang * config/tc-bfin.c (bfin_gen_loop): Remove loop symbol. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index d12d3c412b6..7e398298ca8 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -9958,7 +9958,7 @@ do_msbd: continue; } if (save_c) - *(--s) = save_c; + *(--argsStart) = save_c; insn_error = _("illegal operands"); return; } diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 243b62bd000..83c69f64942 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-07-22 Chao-ying Fu + + * gas/mips/tls-ill.l: Update error message. + * gas/mips/octeon-ill.l: Likewise. + 2008-07-14 Jie Zhang * gas/bfin/{bit2.s, cache2.s, control_code2.s, event2.s, diff --git a/gas/testsuite/gas/mips/octeon-ill.l b/gas/testsuite/gas/mips/octeon-ill.l index ffb1e6ded86..b90eaf17e1a 100644 --- a/gas/testsuite/gas/mips/octeon-ill.l +++ b/gas/testsuite/gas/mips/octeon-ill.l @@ -31,9 +31,9 @@ .*:45: Error: expression out of range .*:46: Error: expression out of range .*:47: Error: register value used as expression -.*:48: Error: illegal operands `dmfc2' +.*:48: Error: illegal operands `dmfc2 \$4,\$15,4' .*:49: Error: register value used as expression -.*:50: Error: illegal operands `dmtc2' +.*:50: Error: illegal operands `dmtc2 \$22,\$7,\$4' .*:52: Error: Improper size \(32\) .*:54: Error: Improper position \(32\) .*:55: Error: Improper size \(29\) diff --git a/gas/testsuite/gas/mips/tls-ill.l b/gas/testsuite/gas/mips/tls-ill.l index 1c1e73cead7..f91ebb89abe 100644 --- a/gas/testsuite/gas/mips/tls-ill.l +++ b/gas/testsuite/gas/mips/tls-ill.l @@ -1,11 +1,11 @@ .*: Assembler messages: .*:6: Error: bad expression -.*:6: Error: illegal operands `addiu' +.*:6: Error: illegal operands `addiu \$4,\$28,%dtprel\(tlsvar\)' .*:7: Error: bad expression -.*:7: Error: illegal operands `addiu' +.*:7: Error: illegal operands `addiu \$4,\$28,%tprel\(tlsvar\)' .*:8: Error: bad expression .*:8: Error: missing '\)' -.*:8: Error: illegal operands `addiu' +.*:8: Error: illegal operands `addiu \$4,\$28,%lo\(%gottprel\(tlsvar\)\)' .*:9: Error: bad expression .*:9: Error: missing '\)' -.*:9: Error: illegal operands `addiu' +.*:9: Error: illegal operands `addiu \$4,\$28,%hi\(%gottprel\(tlsvar\)\)' \ No newline at end of file -- 2.30.2