This is an archive of the discontinued LLVM Phabricator instance.

[LoongArch] AsmParser support for the li.[wd] pseudo instructions
ClosedPublic

Authored by wangleiat on Nov 15 2022, 7:44 PM.

Details

Summary

The li.[wd] pseudo instructions are used to load an immediate value
into a GPR. These expand directly during asm parsing. As the result,
only real MC instructions are emitted to the MCStreamer. The actual
expansion to real instructions is similar to the expansion performed by
the GAS.

Note: The li.w always treats the imm operand as a 32-bit signed value.

Diff Detail

Event Timeline

wangleiat created this revision.Nov 15 2022, 7:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 15 2022, 7:44 PM
wangleiat requested review of this revision.Nov 15 2022, 7:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 15 2022, 7:44 PM
wangleiat updated this revision to Diff 475669.Nov 15 2022, 7:57 PM

Adjust the test order and add some li.w cases.

This revision is now accepted and ready to land.Nov 17 2022, 3:04 AM
This revision was landed with ongoing or failed builds.Nov 21 2022, 12:35 AM
This revision was automatically updated to reflect the committed changes.