[all-commits] [llvm/llvm-project] 9ea5b3: [ELF][RISCV] Use unshifted value for overflow check

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jul 13 00:28:41 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9ea5b34f0500f124af552096f586e58dd259424a
      https://github.com/llvm/llvm-project/commit/9ea5b34f0500f124af552096f586e58dd259424a
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-07-13 (Wed, 13 Jul 2022)

  Changed paths:
    M lld/ELF/Arch/RISCV.cpp
    M lld/test/ELF/riscv-branch.s
    M lld/test/ELF/riscv-jal.s

  Log Message:
  -----------
  [ELF][RISCV] Use unshifted value for overflow check

The unshifted value indicates an displacement in bytes which is more meaningful.




More information about the All-commits mailing list