Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 25 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,13 @@
cross: loongarch64
arch_gnu: loongarch64
arch_deb: loong64
distro: ubuntu-24.04
distro: ubuntu-26.04

Check failure on line 450 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / actionlint

label "ubuntu-26.04" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2025-vs2026", "windows-2022", "windows-11-arm", "ubuntu-slim", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "macos-latest", "macos-latest-xlarge", "macos-latest-large", "macos-26-intel", "macos-26-xlarge", "macos-26-large", "macos-26", "macos-15-intel", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xlarge", "macos-14-large", "macos-14", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
- extra: -fastmath
version: 14
cross: loongarch64
arch_gnu: loongarch64
arch_deb: loong64
distro: ubuntu-26.04

Check failure on line 456 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / actionlint

label "ubuntu-26.04" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2025-vs2026", "windows-2022", "windows-11-arm", "ubuntu-slim", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "macos-latest", "macos-latest-xlarge", "macos-latest-large", "macos-26-intel", "macos-26-xlarge", "macos-26-large", "macos-26", "macos-15-intel", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xlarge", "macos-14-large", "macos-14", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
# - version: 14
# cross: mips64el
# arch_gnu: mips64el
Expand All @@ -472,7 +478,8 @@
sudo apt-get -y --no-install-recommends install ccache ninja-build \
gcc-${{ matrix.version }}-${{ matrix.arch_gnu }}-linux-gnu${{ matrix.arch_gnu_abi }} \
g++-${{ matrix.version }}-${{ matrix.arch_gnu }}-linux-gnu${{ matrix.arch_gnu_abi }} binfmt-support \
qemu-user-static pipx libc6-${{ matrix.arch_deb }}-cross libstdc++-${{ matrix.version }}-dev-${{ matrix.arch_deb }}-cross
pipx libc6-${{ matrix.arch_deb }}-cross libstdc++-${{ matrix.version }}-dev-${{ matrix.arch_deb }}-cross
sudo apt-get -y --no-install-recommends satisfy 'qemu-user-static | qemu-user-binfmt'
pipx install meson==1.3.2
- name: ccache
uses: hendrikmuhs/ccache-action@d62db5f07c26379fc4b4e0916f098a92573c3b03 # v1.2.23
Expand Down Expand Up @@ -639,7 +646,19 @@
cross: loongarch64
arch_deb: loong64
arch_gnu: loongarch64
distro: ubuntu-24.04
distro: ubuntu-26.04

Check failure on line 649 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / actionlint

label "ubuntu-26.04" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2025-vs2026", "windows-2022", "windows-11-arm", "ubuntu-slim", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "macos-latest", "macos-latest-xlarge", "macos-latest-large", "macos-26-intel", "macos-26-xlarge", "macos-26-large", "macos-26", "macos-15-intel", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xlarge", "macos-14-large", "macos-14", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
- version: 21
cross: loongarch64
extra: -fastmath
arch_deb: loong64
arch_gnu: loongarch64
distro: ubuntu-26.04

Check failure on line 655 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / actionlint

label "ubuntu-26.04" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2025-vs2026", "windows-2022", "windows-11-arm", "ubuntu-slim", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "macos-latest", "macos-latest-xlarge", "macos-latest-large", "macos-26-intel", "macos-26-xlarge", "macos-26-large", "macos-26", "macos-15-intel", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xlarge", "macos-14-large", "macos-14", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
- version: 22
cross: loongarch64
extra: -fastmath
arch_deb: loong64
arch_gnu: loongarch64
distro: ubuntu-26.04

Check failure on line 661 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / actionlint

label "ubuntu-26.04" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2025-vs2026", "windows-2022", "windows-11-arm", "ubuntu-slim", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "macos-latest", "macos-latest-xlarge", "macos-latest-large", "macos-26-intel", "macos-26-xlarge", "macos-26-large", "macos-26", "macos-15-intel", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xlarge", "macos-14-large", "macos-14", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
runs-on: ${{ matrix.distro }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand All @@ -650,14 +669,15 @@
run: cat /proc/cpuinfo
- name: Install APT Dependencies
run: |
sudo add-apt-repository ppa:stephanosio/ccache
sudo add-apt-repository ppa:stephanosio/ccache || /bin/true
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh ${{ matrix.version }}
sudo apt-get -y --no-install-recommends install ccache ninja-build \
binfmt-support clang-${{ matrix.version }} llvm-${{ matrix.version }} lld-${{ matrix.version }} \
qemu-user-static pipx libc6-${{ matrix.arch_deb }}-cross libstdc++-14-dev-${{ matrix.arch_deb }}-cross \
pipx libc6-${{ matrix.arch_deb }}-cross libstdc++-14-dev-${{ matrix.arch_deb }}-cross \
binutils-${{ matrix.arch_gnu }}-linux-gnu${{ matrix.arch_gnu_abi }}
sudo apt-get -y --no-install-recommends satisfy 'qemu-user-static | qemu-user-binfmt'
pipx install meson
- name: ccache
uses: hendrikmuhs/ccache-action@d62db5f07c26379fc4b4e0916f098a92573c3b03 # v1.2.23
Expand Down
2 changes: 1 addition & 1 deletion docker/cross-files/loongarch64-clang-18-ccache.cross
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ar = 'llvm-ar-18'
strip = 'llvm-strip-18'
objcopy = 'llvm-objcopy-18'
ld = 'llvm-ld-18'
exe_wrapper = ['qemu-loongarch64-static', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']
exe_wrapper = ['qemu-loongarch64', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']

[built-in options]
c_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror', '-mlsx', '-mlasx']
Expand Down
2 changes: 1 addition & 1 deletion docker/cross-files/loongarch64-clang-19-ccache.cross
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ strip = 'llvm-strip-19'
objcopy = 'llvm-objcopy-19'
c_ld = 'lld'
cpp_ld = 'lld'
exe_wrapper = ['qemu-loongarch64-static', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']
exe_wrapper = ['qemu-loongarch64', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']

[built-in options]
c_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror', '-mlsx', '-mlasx']
Expand Down
2 changes: 1 addition & 1 deletion docker/cross-files/loongarch64-clang-20-ccache.cross
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ strip = 'llvm-strip-20'
objcopy = 'llvm-objcopy-20'
c_ld = 'lld'
cpp_ld = 'lld'
exe_wrapper = ['qemu-loongarch64-static', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']
exe_wrapper = ['qemu-loongarch64', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']

[built-in options]
c_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror', '-mlsx', '-mlasx']
Expand Down
21 changes: 21 additions & 0 deletions docker/cross-files/loongarch64-clang-20-fastmath-ccache.cross
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[binaries]
c = ['ccache', 'clang-20']
cpp = ['ccache', 'clang++-20']
ar = 'llvm-ar-20'
strip = 'llvm-strip-20'
objcopy = 'llvm-objcopy-20'
c_ld = 'lld'
cpp_ld = 'lld'
exe_wrapper = ['qemu-loongarch64', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']

[properties]
c_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror', '-mlsx', '-mlasx', '-O3', '-ffast-math', '-Wno-nan-infinity-disabled']
cpp_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror', '-mlsx', '-mlasx', '-O3', '-ffast-math', '-Wno-nan-infinity-disabled']
c_link_args = ['--target=loongarch64-linux-gnu']
cpp_link_args = ['--target=loongarch64-linux-gnu']

[host_machine]
system = 'linux'
cpu_family = 'loongarch64'
cpu = 'la464'
endian = 'little'
2 changes: 1 addition & 1 deletion docker/cross-files/loongarch64-clang-21-ccache.cross
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ strip = 'llvm-strip-21'
objcopy = 'llvm-objcopy-21'
c_ld = 'lld'
cpp_ld = 'lld'
exe_wrapper = ['qemu-loongarch64-static', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']
exe_wrapper = ['qemu-loongarch64', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']

[built-in options]
c_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror', '-mlsx', '-mlasx']
Expand Down
21 changes: 21 additions & 0 deletions docker/cross-files/loongarch64-clang-21-fastmath-ccache.cross
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[binaries]
c = ['ccache', 'clang-21']
cpp = ['ccache', 'clang++-21']
ar = 'llvm-ar-21'
strip = 'llvm-strip-21'
objcopy = 'llvm-objcopy-21'
c_ld = 'lld'
cpp_ld = 'lld'
exe_wrapper = ['qemu-loongarch64', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']

[properties]
c_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror', '-mlsx', '-mlasx', '-O3', '-ffast-math', '-Wno-nan-infinity-disabled']
cpp_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror', '-mlsx', '-mlasx', '-O3', '-ffast-math', '-Wno-nan-infinity-disabled']
c_link_args = ['--target=loongarch64-linux-gnu']
cpp_link_args = ['--target=loongarch64-linux-gnu']

[host_machine]
system = 'linux'
cpu_family = 'loongarch64'
cpu = 'la464'
endian = 'little'
2 changes: 1 addition & 1 deletion docker/cross-files/loongarch64-clang-22-ccache.cross
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ strip = 'llvm-strip-22'
objcopy = 'llvm-objcopy-22'
c_ld = 'lld'
cpp_ld = 'lld'
exe_wrapper = ['qemu-loongarch64-static', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']
exe_wrapper = ['qemu-loongarch64', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']

[built-in options]
c_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror', '-mlsx', '-mlasx']
Expand Down
21 changes: 21 additions & 0 deletions docker/cross-files/loongarch64-clang-22-fastmath-ccache.cross
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[binaries]
c = ['ccache', 'clang-22']
cpp = ['ccache', 'clang++-22']
ar = 'llvm-ar-22'
strip = 'llvm-strip-22'
objcopy = 'llvm-objcopy-22'
c_ld = 'lld'
cpp_ld = 'lld'
exe_wrapper = ['qemu-loongarch64', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']

[properties]
c_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror', '-mlsx', '-mlasx', '-O3', '-ffast-math', '-Wno-nan-infinity-disabled']
cpp_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror', '-mlsx', '-mlasx', '-O3', '-ffast-math', '-Wno-nan-infinity-disabled']
c_link_args = ['--target=loongarch64-linux-gnu']
cpp_link_args = ['--target=loongarch64-linux-gnu']

[host_machine]
system = 'linux'
cpu_family = 'loongarch64'
cpu = 'la464'
endian = 'little'
2 changes: 1 addition & 1 deletion docker/cross-files/loongarch64-clang-23-ccache.cross
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ strip = 'llvm-strip-23'
objcopy = 'llvm-objcopy-23'
c_ld = 'lld'
cpp_ld = 'lld'
exe_wrapper = ['qemu-loongarch64-static', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']
exe_wrapper = ['qemu-loongarch64', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']

[built-in options]
c_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror', '-mlsx', '-mlasx']
Expand Down
2 changes: 1 addition & 1 deletion docker/cross-files/loongarch64-gcc-13-ccache.cross
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ar = 'loongarch64-unknown-linux-gnu-ar'
strip = 'loongarch64-unknown-linux-gnu-strip'
objcopy = 'loongarch64-unknown-linux-gnu-objcopy'
ld = 'loongarch64-unknown-linux-gnu-ld'
exe_wrapper = ['qemu-loongarch64-static', '-L', '/opt/cross-tools/target/usr']
exe_wrapper = ['qemu-loongarch64', '-L', '/opt/cross-tools/target/usr']

[built-in options]
c_args = ['-march=loongarch64', '-Wextra', '-Werror']
Expand Down
2 changes: 1 addition & 1 deletion docker/cross-files/loongarch64-gcc-13.cross
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ar = 'loongarch64-unknown-linux-gnu-ar'
strip = 'loongarch64-unknown-linux-gnu-strip'
objcopy = 'loongarch64-unknown-linux-gnu-objcopy'
ld = 'loongarch64-unknown-linux-gnu-ld'
exe_wrapper = ['qemu-loongarch64-static', '-L', '/opt/cross-tools/target/usr']
exe_wrapper = ['qemu-loongarch64', '-L', '/opt/cross-tools/target/usr']

[built-in options]
c_args = ['-march=loongarch64', '-Wextra', '-Werror']
Expand Down
2 changes: 1 addition & 1 deletion docker/cross-files/loongarch64-gcc-14-ccache.cross
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ar = 'loongarch64-linux-gnu-gcc-ar-14'
strip = 'loongarch64-linux-gnu-strip'
objcopy = 'loongarch64-linux-gnu-objcopy'
ld = 'loongarch64-linux-gnu-ld'
exe_wrapper = ['qemu-loongarch64-static', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']
exe_wrapper = ['qemu-loongarch64', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']

[built-in options]
c_args = ['-march=loongarch64', '-Wextra', '-Werror', '-mlsx', '-mlasx']
Expand Down
20 changes: 20 additions & 0 deletions docker/cross-files/loongarch64-gcc-14-fastmath-ccache.cross
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[binaries]
c = ['ccache', 'loongarch64-linux-gnu-gcc-14']
cpp = ['ccache', 'loongarch64-linux-gnu-g++-14']
ar = 'loongarch64-linux-gnu-gcc-ar-14'
strip = 'loongarch64-linux-gnu-strip'
objcopy = 'loongarch64-linux-gnu-objcopy'
ld = 'loongarch64-linux-gnu-ld'
exe_wrapper = ['qemu-loongarch64', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']

[properties]
c_args = ['-march=loongarch64', '-Wextra', '-Werror', '-mlsx', '-mlasx', '-Ofast']
cpp_args = ['-march=loongarch64', '-Wextra', '-Werror', '-mlsx', '-mlasx', '-Ofast']
#c_args = ['-march=la464', '-Wextra', '-Werror']
#cpp_args = ['-march=la464', '-Wextra', '-Werror']

[host_machine]
system = 'linux'
cpu_family = 'loongarch64'
cpu = 'loongarch64'
endian = 'little'
2 changes: 1 addition & 1 deletion docker/cross-files/loongarch64-gcc-15-ccache.cross
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ar = 'loongarch64-linux-gnu-gcc-ar-15'
strip = 'loongarch64-linux-gnu-strip'
objcopy = 'loongarch64-linux-gnu-objcopy'
ld = 'loongarch64-linux-gnu-ld'
exe_wrapper = ['qemu-loongarch64-static', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']
exe_wrapper = ['qemu-loongarch64', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']

[built-in options]
c_args = ['-march=loongarch64', '-Wextra', '-Werror', '-mlsx', '-mlasx']
Expand Down
2 changes: 1 addition & 1 deletion docker/cross-files/loongarch64-gcc-16-ccache.cross
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ar = 'loongarch64-linux-gnu-gcc-ar-16'
strip = 'loongarch64-linux-gnu-strip'
objcopy = 'loongarch64-linux-gnu-objcopy'
ld = 'loongarch64-linux-gnu-ld'
exe_wrapper = ['qemu-loongarch64-static', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']
exe_wrapper = ['qemu-loongarch64', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464']

[built-in options]
c_args = ['-march=loongarch64', '-Wextra', '-Werror', '-mlsx', '-mlasx']
Expand Down
8 changes: 8 additions & 0 deletions test/test.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ simde_test_debug_printf_(const char* format, ...) {
HEDLEY_DIAGNOSTIC_PUSH
SIMDE_DIAGNOSTIC_DISABLE_FLOAT_EQUAL_

#if defined(SIMDE_FAST_MATH) && defined(HEDLEY_GCC_VERSION) && HEDLEY_GCC_VERSION_CHECK(4,4,0)
__attribute__((optimize("-fno-finite-math-only")))
__attribute__((noinline))
#endif
static int
simde_test_equal_f32(simde_float32 a, simde_float32 b, simde_float32 slop) {
if (simde_math_isnan(a)) {
Expand Down Expand Up @@ -156,6 +160,10 @@ simde_test_equal_f16(simde_float16 a, simde_float16 b, simde_float16 slop) {
return simde_test_equal_f32(af, bf, slopf);
}

#if defined(SIMDE_FAST_MATH) && defined(HEDLEY_GCC_VERSION) && HEDLEY_GCC_VERSION_CHECK(4,4,0)
__attribute__((optimize("-fno-finite-math-only")))
__attribute__((noinline))
#endif
static int
simde_test_equal_f64(simde_float64 a, simde_float64 b, simde_float64 slop) {
if (simde_math_isnan(a)) {
Expand Down
Loading