[PATCH] D114194: [SystemZ] Add range checks for PC-relative fixups
Jonas Paulsson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 18 13:45:25 PST 2021
jonpa created this revision.
jonpa added a reviewer: uweigand.
Herald added a subscriber: hiraditya.
jonpa requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The AsmParser checks for the range of a pc-relative immediate operand, but when that operand is a specified label there was previously no such check performed.
This patch adds checks for these operands in applyFixup(), at which point the actual offset is known.
https://reviews.llvm.org/D114194
Files:
llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmBackend.cpp
llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCCodeEmitter.cpp
llvm/test/MC/SystemZ/fixups-out-of-range-01.s
llvm/test/MC/SystemZ/fixups-out-of-range-02.s
llvm/test/MC/SystemZ/fixups-out-of-range.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114194.388309.patch
Type: text/x-patch
Size: 8066 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211118/b01137cc/attachment.bin>
More information about the llvm-commits
mailing list