[all-commits] [llvm/llvm-project] f292d5: [LoongArch] Fix undefined behavior: left shift of ...

wanglei via All-commits all-commits at lists.llvm.org
Wed Jan 11 05:18:58 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f292d53c70f96ca2beee448fb9bf2debaf0134a0
      https://github.com/llvm/llvm-project/commit/f292d53c70f96ca2beee448fb9bf2debaf0134a0
  Author: wanglei <wanglei at loongson.cn>
  Date:   2023-01-11 (Wed, 11 Jan 2023)

  Changed paths:
    M llvm/lib/Target/LoongArch/Disassembler/LoongArchDisassembler.cpp

  Log Message:
  -----------
  [LoongArch] Fix undefined behavior: left shift of negative value

Fix undefined behavior in `decodeSImmOperand` where we were left shifting
a signed value.




More information about the All-commits mailing list