[PATCH] D151794: [LoongArch] Add sign extension for i32 parameters and returns.
Limin Zhang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 31 03:05:38 PDT 2023
Ami-zhang created this revision.
Ami-zhang added reviewers: SixWeining, wangleiat, MaskRay, xen0n.
Herald added subscribers: s.egerton, simoncook, asb.
Herald added a project: All.
Ami-zhang requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.
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
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D151794
Files:
llvm/include/llvm/Analysis/TargetLibraryInfo.h
llvm/test/Instrumentation/AddressSanitizer/experiment.ll
llvm/test/Instrumentation/AddressSanitizer/mem-intrinsics.ll
llvm/test/Instrumentation/ThreadSanitizer/atomic.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151794.526980.patch
Type: text/x-patch
Size: 8300 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230531/fefd29de/attachment.bin>
More information about the llvm-commits
mailing list