[all-commits] [llvm/llvm-project] 7983f8: MIPS: allow o32 abi with 64bit CPU and 64 abi with...
YunQiang Su via All-commits
all-commits at lists.llvm.org
Tue May 16 15:31:50 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7983f8aca82e258174849f1cc6a70029353e9887
https://github.com/llvm/llvm-project/commit/7983f8aca82e258174849f1cc6a70029353e9887
Author: YunQiang Su <wzssyqa at gmail.com>
Date: 2023-05-16 (Tue, 16 May 2023)
Changed paths:
M clang/lib/Basic/Targets/Mips.cpp
M clang/test/Driver/mips-abi.c
A clang/test/Driver/mips-cpu64abi32.c
M llvm/lib/Target/Mips/MipsSubtarget.cpp
Log Message:
-----------
MIPS: allow o32 abi with 64bit CPU and 64 abi with 32bit triple
In general, MIPS support ELF format like
ELF 32-bit LSB relocatable, MIPS, MIPS64 rel2 version 1 (SYSV)
and Linux's VDSO uses it.
Currently clang stop CMDs like
clang -march=mips64r2 -mabi=32
While it is not needed now, since the the backend support the combination now.
This patch also allows something like
clang --target=mipsel-linux-gnu -mabi=64
Since the triple can convert to right 64bit one automaticly.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D146269
More information about the All-commits
mailing list