Skip to content

Commit

Permalink
gh-actions: update CI test for loongarch
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jinboson authored and mr-c committed Dec 11, 2024
1 parent fa6a869 commit 0cf3528
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker/cross-files/loongarch64-clang-18-ccache.cross
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down
4 changes: 2 additions & 2 deletions docker/cross-files/loongarch64-gcc-14-ccache.cross
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down

0 comments on commit 0cf3528

Please sign in to comment.