diff options
author | Paul Brook <paul@codesourcery.com> | 2007-11-06 22:17:00 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2007-11-06 22:17:00 +0000 |
commit | 682b27ad2a2238e7575e7eab1978cbb850135965 (patch) | |
tree | baa39c9abc1e95093e4339e2503c4298eb5a8b78 /gas/config | |
parent | 8c7504802aa101a9df8e799e1d1943ab7b5ff80b (diff) | |
download | gdb-682b27ad2a2238e7575e7eab1978cbb850135965.zip gdb-682b27ad2a2238e7575e7eab1978cbb850135965.tar.gz gdb-682b27ad2a2238e7575e7eab1978cbb850135965.tar.bz2 |
2007-11-06 Paul Brook <paul@codesourcery.com>
gas/
* config/tc-arm.c (do_mull): Allow overlapping Rm for armv6.
gas/testsuite/
* gas/arm/mul-overlap.s: Add umull and smlal.
* gas/arm/mul-overlap.l: Update expected results.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-arm.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index f2f7dcc..a35204c 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -7202,10 +7202,14 @@ do_mull (void) inst.instruction |= inst.operands[2].reg; inst.instruction |= inst.operands[3].reg << 8; - /* rdhi, rdlo and rm must all be different. */ - if (inst.operands[0].reg == inst.operands[1].reg - || inst.operands[0].reg == inst.operands[2].reg + /* rdhi and rdlo must be different. */ + if (inst.operands[0].reg == inst.operands[1].reg) + as_tsktsk (_("rdhi and rdlo must be different")); + + /* rdhi, rdlo and rm must all be different before armv6. */ + if ((inst.operands[0].reg == inst.operands[2].reg || inst.operands[1].reg == inst.operands[2].reg) + && !ARM_CPU_HAS_FEATURE (selected_cpu, arm_ext_v6)) as_tsktsk (_("rdhi, rdlo and rm must all be different")); } |