[all-commits] [llvm/llvm-project] f873c5: [LoongArch] AsmParser support for the li.[wd] pseu...
wanglei via All-commits
all-commits at lists.llvm.org
Mon Nov 21 00:35:27 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f873c50caa597051e7cbff50116da83b8a9171c9
https://github.com/llvm/llvm-project/commit/f873c50caa597051e7cbff50116da83b8a9171c9
Author: wanglei <wanglei at loongson.cn>
Date: 2022-11-21 (Mon, 21 Nov 2022)
Changed paths:
M llvm/lib/Target/LoongArch/AsmParser/LoongArchAsmParser.cpp
M llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
A llvm/test/MC/LoongArch/Macros/macros-li-bad.s
A llvm/test/MC/LoongArch/Macros/macros-li.s
Log Message:
-----------
[LoongArch] AsmParser support for the li.[wd] pseudo instructions
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.
Reviewed By: SixWeining
Differential Revision: https://reviews.llvm.org/D138086
More information about the All-commits
mailing list