opcodes/loongarch: print unrecognized insn words with the .word directive
authorWANG Xuerui <git@xen0n.name>
Thu, 29 Jun 2023 16:35:03 +0000 (00:35 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Fri, 30 Jun 2023 02:18:02 +0000 (10:18 +0800)
commit6ad6615a79843aa224710a70a33fd15777f74f49
tree3627e8c882ba17c0c228bdd55cbbf0c673f6a295
parent8b6fefaddeec839e6b1121336ba5e6696491d91f
opcodes/loongarch: print unrecognized insn words with the .word directive

For better round-trip fidelity and readability in general.

gas/ChangeLog:

* testsuite/gas/loongarch/uleb128.d: Update test case.
* testsuite/gas/loongarch/raw-insn.d: New test.
* testsuite/gas/loongarch/raw-insn.s: Likewise.

opcodes/ChangeLog:

* loongarch-dis.c (disassemble_one): Print ".word" if !opc.

Signed-off-by: WANG Xuerui <git@xen0n.name>
gas/testsuite/gas/loongarch/raw-insn.d [new file with mode: 0644]
gas/testsuite/gas/loongarch/raw-insn.s [new file with mode: 0644]
gas/testsuite/gas/loongarch/uleb128.d
opcodes/loongarch-dis.c