[all-commits] [llvm/llvm-project] d8900f: [ARM] Fix abs overflow when encoding instructions ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Aug 18 13:36:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d8900f661a6e451be0ca253df3065254008dd93a
      https://github.com/llvm/llvm-project/commit/d8900f661a6e451be0ca253df3065254008dd93a
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-08-18 (Fri, 18 Aug 2023)

  Changed paths:
    M llvm/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp

  Log Message:
  -----------
  [ARM] Fix abs overflow when encoding instructions like strb r1, [r0], #-0

Tested by llvm/test/MC/ARM/basic-thumb2-instructions.s.
Caught by newer -fsanitize=signed-integer-overflow (D156821).




More information about the All-commits mailing list