Skip to content

Add swizzle kernels for lsx and lasx - #1415

Merged
serge-sans-paille merged 1 commit into
xtensor-stack:masterfrom
domibel:lsx-swizzle
Sep 25, 2026
Merged

serge-sans-paille merged 1 commit into
xtensor-stack:masterfrom
domibel:lsx-swizzle

Conversation

@domibel

@domibel domibel commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Both backends inherited the common swizzle, which stores the vector to a buffer and rebuilds it element by element.

LSX

qemu-loongarch64-static -cpu 'la464,lsx=on,lasx=off' -L /usr/loongarch64-linux-gnu ./test/test_xsimd
[doctest] doctest version is "2.4.9"
[doctest] run with "--help" for options
===============================================================================
[doctest] test cases:  410 |  410 passed | 0 failed | 0 skipped
[doctest] assertions: 5985 | 5985 passed | 0 failed |
[doctest] Status: SUCCESS!

LASX

qemu-loongarch64-static -cpu 'la464,lsx=on,lasx=on' -L /usr/loongarch64-linux-gnu ./test/test_xsimd
[doctest] doctest version is "2.4.9"
[doctest] run with "--help" for options
===============================================================================
[doctest] test cases:  410 |  410 passed | 0 failed | 0 skipped
[doctest] assertions: 7921 | 7921 passed | 0 failed |
[doctest] Status: SUCCESS!

Also tested natively on Loongson-3A6000.

Both backends inherited the common swizzle, which stores the vector to a
buffer and rebuilds it element by element.
@serge-sans-paille

Copy link
Copy Markdown
Contributor

Thanks!

@serge-sans-paille
serge-sans-paille merged commit 20c2789 into xtensor-stack:master Sep 25, 2026
87 of 88 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants