[PATCH][ARM][gas] Accept narrow form of tst<condition> rd, rn in Thumb mode

Kyrill Tkachov kyrylo.tkachov@arm.com
Fri Oct 4 14:20:00 GMT 2013


Hi all,

Currently gas fails to assemble:
.syntax unified
it  gt
tstgt.n r0, r4

It seems that it's trying to use a 32-bit encoding when it could use a narrow one.
This patch fixes that. tst doesn't have a "flag setting" variant ("tsts"?) since 
it's already flag setting, therefore in the do_t_mvn_tst function it should be 
treated similarly to cmn.

Tests are added and check-gas passes.

Ok to apply to trunk?

Thanks,
Kyrill

[gas/]
2013-10-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     * config/tc-arm.c (do_t_mvn_tst): Use narrow form for tst when
     possible.


[gas/testsuite/]
2013-10-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     * gas/arm/thumb2_it.s: Add test for narrow tst.
     * gas/arm/thumb2_it.d: Update expected output.
     * gas/arm/thumb2_it_auto.d: Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gas_tstn.patch
Type: text/x-patch
Size: 1652 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20131004/ba01175d/attachment.bin>


More information about the Binutils mailing list