Relocatable expressions may be used as operands; however they are not accounted for when computing the total number of literals used by an instruction.
See bug 43359: https://bugs.llvm.org//show_bug.cgi?id=43359
Paths
| Differential D67829
[AMDGPU][MC] Corrected handling of relocatable expressions ClosedPublic Authored by dp on Sep 20 2019, 6:06 AM.
Details Summary Relocatable expressions may be used as operands; however they are not accounted for when computing the total number of literals used by an instruction. See bug 43359: https://bugs.llvm.org//show_bug.cgi?id=43359
Diff Detail
Event TimelineHerald added subscribers: t-tye, tpr, dstuttard and 6 others. · View Herald TranscriptSep 20 2019, 6:06 AM This revision is now accepted and ready to land.Sep 20 2019, 8:13 AM Comment Actions I believe codegen does not need any changes. Symbols like MO_ExternalSymbol, etc are handled by SIInstrInfo::usesConstantBus and SIInstrInfo::isLiteralConstantLike. Closed by commit rL372622: [AMDGPU][MC] Corrected handling of relocatable expressions (authored by dpreobra). · Explain WhySep 23 2019, 8:40 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 221348 llvm/trunk/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
llvm/trunk/test/MC/AMDGPU/expressions-gfx10.s
llvm/trunk/test/MC/AMDGPU/expressions-gfx9.s
|