From 0cf3528b41a11b0fc86f092ec32a4b3d41b793d9 Mon Sep 17 00:00:00 2001 From: jinbo Date: Fri, 6 Dec 2024 17:25:58 +0800 Subject: [PATCH] gh-actions: update CI test for loongarch It seems that -mlsx and -mlasx options were forgotten to pass to gcc or clang for CI testing. The compilers need them to enable SIMDE_LOONGARCH_LSX/LASX_NATIVE, otherwise only the emul part of the test suites is tested. --- docker/cross-files/loongarch64-clang-18-ccache.cross | 4 ++-- docker/cross-files/loongarch64-gcc-14-ccache.cross | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/cross-files/loongarch64-clang-18-ccache.cross b/docker/cross-files/loongarch64-clang-18-ccache.cross index 082728339..7f6530472 100644 --- a/docker/cross-files/loongarch64-clang-18-ccache.cross +++ b/docker/cross-files/loongarch64-clang-18-ccache.cross @@ -8,8 +8,8 @@ ld = 'llvm-ld-18' exe_wrapper = ['qemu-loongarch64-static', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464'] [properties] -c_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror'] -cpp_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror'] +c_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror', '-mlsx', '-mlasx'] +cpp_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror', '-mlsx', '-mlasx'] c_link_args = ['--target=loongarch64-linux-gnu'] cpp_link_args = ['--target=loongarch64-linux-gnu'] diff --git a/docker/cross-files/loongarch64-gcc-14-ccache.cross b/docker/cross-files/loongarch64-gcc-14-ccache.cross index b01f9544b..b3296f02c 100644 --- a/docker/cross-files/loongarch64-gcc-14-ccache.cross +++ b/docker/cross-files/loongarch64-gcc-14-ccache.cross @@ -8,8 +8,8 @@ ld = 'loongarch64-linux-gnu-ld' exe_wrapper = ['qemu-loongarch64-static', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464'] [properties] -c_args = ['-march=loongarch64', '-Wextra', '-Werror', '-mlsx'] -cpp_args = ['-march=loongarch64', '-Wextra', '-Werror', '-mlsx'] +c_args = ['-march=loongarch64', '-Wextra', '-Werror', '-mlsx', '-mlasx'] +cpp_args = ['-march=loongarch64', '-Wextra', '-Werror', '-mlsx', '-mlasx'] #c_args = ['-march=la464', '-Wextra', '-Werror'] #cpp_args = ['-march=la464', '-Wextra', '-Werror']