[all-commits] [llvm/llvm-project] 4fd1b8: [Analysis][LoongArch] Add sign extension for i32 p...

Ami-zhang via All-commits all-commits at lists.llvm.org
Thu Jun 1 09:06:53 PDT 2023


  Branch: refs/heads/release/16.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 4fd1b8691da0970fec8ab564e9dd3a368e285b06
      https://github.com/llvm/llvm-project/commit/4fd1b8691da0970fec8ab564e9dd3a368e285b06
  Author: zhanglimin <zhanglimin at loongson.cn>
  Date:   2023-06-01 (Thu, 01 Jun 2023)

  Changed paths:
    M llvm/include/llvm/Analysis/TargetLibraryInfo.h
    M llvm/test/Instrumentation/AddressSanitizer/experiment.ll
    M llvm/test/Instrumentation/AddressSanitizer/mem-intrinsics.ll
    M llvm/test/Instrumentation/ThreadSanitizer/atomic.ll

  Log Message:
  -----------
  [Analysis][LoongArch] Add sign extension for i32 parameters and returns

In LoongArch ABI spec, we can see that in the LP64D ABI, unsigned 32-bit
types, such as unsigned int, are stored in general-purpose registers as
proper sign extensions of their 32-bit values.

Reference:
https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html#_abi_lp64d

Reviewed By: SixWeining, xen0n

Differential Revision: https://reviews.llvm.org/D151794

(cherry picked from commit fe6716a49850be09291f0eded6fb8ffa9f5cc651)




More information about the All-commits mailing list