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

Ami-zhang via All-commits all-commits at lists.llvm.org
Wed May 31 20:15:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe6716a49850be09291f0eded6fb8ffa9f5cc651
      https://github.com/llvm/llvm-project/commit/fe6716a49850be09291f0eded6fb8ffa9f5cc651
  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




More information about the All-commits mailing list