[PATCH] D132285: [LoongArch] Implement ABI lowering
Lu Weining via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 22 23:00:11 PDT 2022
SixWeining added a comment.
In D132285#3739568 <https://reviews.llvm.org/D132285#3739568>, @xry111 wrote:
> In D132285#3737855 <https://reviews.llvm.org/D132285#3737855>, @SixWeining wrote:
>
>> Ignore zero-width bit fields and add a test.
>
> Thanks! There is a GCC test (https://gcc.gnu.org/r12-7951) which can be used to test if there is any ABI incompatibility between GCC and Clang, but I guess it's not possible to run it at the early development stage of Clang. Maybe we can run it later.
Thanks. Let me add a test for zero size arrays.
And, with the parent revison D130255 <https://reviews.llvm.org/D130255> landed, we can compile `.c` programs to loongarch executables now. But currently since the `f` and `d` target feaures can not been passed to clang cc1 yet, we may manually pass them to clang cc1 to generate floating-point instructions. For example:
$ clang --target=loongarch64-unknown-linux-gnu --gcc-toolchain=xxx --sysroot=xxx -Xclang -target-feature -Xclang +f main.c
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132285/new/
https://reviews.llvm.org/D132285
More information about the cfe-commits
mailing list