diff options
| author | Weining Lu <luweining@loongson.cn> | 2022-10-21 09:56:27 +0800 |
|---|---|---|
| committer | Weining Lu <luweining@loongson.cn> | 2022-10-21 09:56:45 +0800 |
| commit | c98add7a11ff35d42fee860f9c9d301601ff5861 (patch) | |
| tree | 9e92a0d67a893e37a1cb4e10a9e4801ad8f41a75 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 1a91537d4ddd757a51c131ce6e8f25f2d1fbb3d3 (diff) | |
[LoongArch] Report error in AsmParser when rd == rk or rd == rj for AM* instructions
Do this check because the ISA manual says (edited from the original translation):
> If the AM* instruction has its rd == rj, an Instruction Non-defined Exception will be triggered when the instruction is executed.
>
> If the AM* instruction has its rd == rk, the execution result is unpredictable. It is software's responsibility to avoid this situation.
Note that binutils does the same check except when rd == r0 but this
is undocumented.
Differential Revision: https://reviews.llvm.org/D136076
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
