[PATCH] D152841: Prevent out of range fixup encoding on AArch64

Daniel Hoekwater via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 13 10:56:51 PDT 2023


dhoekwater created this revision.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
dhoekwater requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The range of a 21-bit signed integer is [-1048576, 1048575],
not [-2097152, 2097151].


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152841

Files:
  llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
  llvm/test/MC/AArch64/fixup-out-of-range-edge.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152841.530989.patch
Type: text/x-patch
Size: 3385 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230613/77122f1a/attachment.bin>


More information about the llvm-commits mailing list