* config/tc-arm.c (only_one_reg_in_list): New function.
authorNick Clifton <nickc@redhat.com>
Thu, 12 Apr 2012 07:46:54 +0000 (07:46 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 12 Apr 2012 07:46:54 +0000 (07:46 +0000)
commit6530b175a1051db81806d031b8ab2937744ff57b
tree3af9a7137c724b8db9731019fd811e2269559d2e
parent202e23565d36f4696d5e836ec06d4c685c30fb16
* config/tc-arm.c (only_one_reg_in_list): New function.
(encode_ldmstm): Ditto.
(do_ldmstm): Use a different encoding when pushing or poping
a single register.
(A_COND_MASK): New macro.
(A_PUSH_POP_OP_MASK): Ditto.
(A1_OPCODE_PUSH): Ditto.
(A2_OPCODE_PUSH): Ditto.
(A2_OPCODE_POP): Ditto.

* gas/arm/push-pop.d: New testcase.
* gas/arm/push-pop.s: Ditto.
* gas/arm/stm-ldm.d: Ditto.
* gas/arm/stm-ldm.s: Ditto.
gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/ChangeLog