[LoongArch] Implement assembler branches pseudo instructions
authorwanglei <wanglei@loongson.cn>
Fri, 18 Nov 2022 08:33:49 +0000 (16:33 +0800)
committerwanglei <wanglei@loongson.cn>
Fri, 18 Nov 2022 08:54:20 +0000 (16:54 +0800)
commitbfa3551dd3ac2d8aba42f2c8cb296ea0494e679a
treebc2cc9ed6198f609b1a7e2dd301675524ce91980
parent3f63889d58c363348832eaf789e340f11d0d0ee8
[LoongArch] Implement assembler branches pseudo instructions

These instructions always output the canonical mnemonic. The GNU tools
emit the canonical mnemonic for the branch pseudo instructions as well
(e.g. "bgt" will be recognised by the assembler but never printed by
objdump).

Reviewed By: xen0n

Differential Revision: https://reviews.llvm.org/D138100
llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
llvm/test/MC/LoongArch/Macros/aliases-br.s [new file with mode: 0644]