This is an archive of the discontinued LLVM Phabricator instance.

[LoongArch] Implement assembler branches pseudo instructions
ClosedPublic

Authored by wangleiat on Nov 16 2022, 12:26 AM.

Details

Summary

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).

Diff Detail

Event Timeline

wangleiat created this revision.Nov 16 2022, 12:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 16 2022, 12:26 AM
wangleiat requested review of this revision.Nov 16 2022, 12:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 16 2022, 12:26 AM
xen0n accepted this revision.Nov 16 2022, 12:39 AM

Trivial enough.

Although I'd still argue that in fact the gt/le variants are the "canonical" ones, due to the correct ordering of rd, rj ;-) But again the manual isn't amended yet (somebody's still holding strong it seems) so let's just first achieve feature parity...

This revision is now accepted and ready to land.Nov 16 2022, 12:39 AM