arm/armasm: fix wrong decoding MOVW/MOVH/MOVB to plan9 syntax
There are two issues in decoding to arm plan9 syntax.
1. Though "0xe7912e29" is correctly decoded to "MOVW (R1)(R0>>28), R2",
"0xe7112e20" is also decoded to the same text, which is expected to
"MOVW.U (R1)(R0>>28), R2".
2. Both 0xe5d21000 and 0xe1d210d0 are decoded to "MOVB (R2), R1".
The first one is LDRB and should be decoded to "MOVBU (R2), R1". And
the second one is LDRSB and should be decoded to "MOVBS (R2), R1".
This patch fixes them and adds more decoding tests.
Run-TryBot: Cherry Zhang <firstname.lastname@example.org>
TryBot-Result: Gobot Gobot <email@example.com>
Reviewed-by: Cherry Zhang <firstname.lastname@example.org>
2 files changed