Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
2ca628e
loongarch: Add portable intrinsics::simd implementations for VAVG/VAV…
tangaac Jul 22, 2026
fcf4562
neon: drop the align requirement on vld1/vst1 lane loads and stores
valentynkit Aug 20, 2026
e9bc995
neon: drop the align requirement on vld1 dup loads
valentynkit Aug 20, 2026
2b05940
neon: assert ldr for the f32 lane and dup loads on arm
valentynkit Aug 20, 2026
98f513b
Add missing avx512vl intrinsics for f32->u32 conversions
Shnatsel Jul 26, 2026
773242f
Add manual exception for the intrinsics forgotten in the intel intrin…
Shnatsel Aug 23, 2026
d78d206
Use the proper tracking issue
Shnatsel Aug 23, 2026
9f02c53
cargo fmt
Shnatsel Aug 23, 2026
17c4c4f
Merge pull request #2197 from Shnatsel/missing-avx512vl-conversions
folkertdev Aug 23, 2026
f9fe5c5
Merge branch 'rust-lang:main' into loongarch-simd-vavg
tangaac Aug 24, 2026
2e36890
Prepare for merging from rust-lang/rust
invalid-email-address Aug 24, 2026
8d4eacf
Merge ref 'da5114692c9e' from rust-lang/rust
invalid-email-address Aug 24, 2026
7bd952b
Merge pull request #2203 from rust-lang/rustc-pull
adamgemmell Aug 24, 2026
8360819
Merge pull request #2195 from tangaac/loongarch-simd-vavg
adamgemmell Aug 24, 2026
2cc2b57
Prepare for merging from rust-lang/rust
invalid-email-address Sep 7, 2026
a3ff62c
Merge ref '32d94cc9be3f' from rust-lang/rust
invalid-email-address Sep 7, 2026
0016f59
Run rustfmt
adamgemmell Sep 7, 2026
7cbced2
Update vzipq arm instruction assertions
adamgemmell Sep 8, 2026
ab89d47
Merge pull request #2215 from rust-lang/rustc-pull
folkertdev Sep 8, 2026
0c4077d
Run cargo fmt on JOSH syncs
adamgemmell Sep 8, 2026
dd13995
Revert "Use SIMD intrinsics for vector shifts"
RalfJung Sep 5, 2026
39333b9
de-constify methods that depended on the vector shift ones
RalfJung Sep 5, 2026
aa62feb
fmt
RalfJung Sep 5, 2026
cfc12ac
Fix "explicit `package.readme` can be inferred"
adamgemmell Sep 9, 2026
89e9fe1
Fix "`package.homepage` is redundant with `package.repository`"
adamgemmell Sep 9, 2026
dce8dd2
Fix "unused dependency"
adamgemmell Sep 9, 2026
a5b1c3c
Merge pull request #2217 from RalfJung/vector-shift-codegen
adamgemmell Sep 9, 2026
aa1e431
Merge pull request #2220 from adamgemmell/dev/adagem01/josh-sync-fmt
folkertdev Sep 13, 2026
d3d4a64
only run `f16` tests when `target_has_reliable_f16`
folkertdev Sep 13, 2026
655ec5a
Merge pull request #2222 from adamgemmell/dev/adagem01/cargo-lints
folkertdev Sep 13, 2026
5bf69a2
Enable triagebot relabelling
clarfonthey Sep 13, 2026
dbac732
Merge pull request #2214 from valentynkit/vld1-lane-unaligned
Amanieu Sep 14, 2026
6c68a59
Merge pull request #2224 from folkertdev/win-gnu-no-f16
adamgemmell Sep 14, 2026
c18068c
Merge pull request #2223 from clarfonthey/triagebot
folkertdev Sep 14, 2026
8b69149
Use clap to parse arguments in `stdarch-gen-hexagon`
Kobzol Sep 14, 2026
d405672
Automatically reformat all generated files with a unified rustfmt config
Kobzol Sep 14, 2026
d0f6897
Use rustfmt formatting in stdarch-gen-loongarch
Kobzol Sep 14, 2026
2b0ee0b
Use unified rustfmt formatting in stdarch-gen-arm
Kobzol Sep 14, 2026
34bda05
Show diff when generated files do not match expectations
xonx4l Sep 14, 2026
988cc4b
Bless arm output
Kobzol Sep 14, 2026
1bda26e
Fix tests
Kobzol Sep 14, 2026
1d6ecb3
Install rustfmt on CI
Kobzol Sep 14, 2026
e358d1f
Merge pull request #2225 from Kobzol/gen-refactor-rustfmt
folkertdev Sep 14, 2026
4ff0ef6
intrinsic-test: Fix intrinsic test names for negative immediate values
heiher Sep 14, 2026
5a01034
intrinsic-test: Add C intrinsic name prefix support
heiher Sep 14, 2026
bb2b679
intrinsic-test: Support testing LoongArch64 SIMD intrinsics
heiher Sep 14, 2026
41bc79c
Merge pull request #2226 from heiher/loong64-intrinsic-test
folkertdev Sep 17, 2026
a998f8a
improve simd bitshift tests
folkertdev Sep 17, 2026
fcddd10
s390x: use funnel shift
folkertdev Sep 20, 2026
3da3866
s390x: use u128 arithmetic
folkertdev Sep 20, 2026
fc49efd
Prepare for merging from rust-lang/rust
Kobzol Sep 21, 2026
20cdf9f
Merge ref '220b36c420c4' from rust-lang/rust
Kobzol Sep 21, 2026
dabd0d2
Merge pull request #2230 from folkertdev/s390x-llvm-fixmes
adamgemmell Sep 21, 2026
3ca6e6c
fix `test_mm_srav_epi64` shift direction
folkertdev Sep 23, 2026
75dd3ee
Merge pull request #2228 from folkertdev/better-simd-bitshift-tests
davidtwco Sep 23, 2026
4282aee
Merge pull request #2231 from Kobzol/sync
folkertdev Sep 23, 2026
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
540 changes: 270 additions & 270 deletions library/stdarch/.github/workflows/main.yml

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions library/stdarch/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ version = "2.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af"

[[package]]
name = "bstr"
version = "1.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6bb31b46c14244e20ee9984b11bf5c992b91fb6939fea616e3512c8baecdbe5f"
dependencies = [
"memchr",
"serde_core",
]

[[package]]
name = "cc"
version = "1.2.59"
Expand Down Expand Up @@ -800,10 +810,20 @@ dependencies = [
"syn",
]

[[package]]
name = "similar"
version = "3.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4f66ca1f7aca2474dc10c942eb22feffc897735f54cd1db90138c2fddb490987"
dependencies = [
"bstr",
]

[[package]]
name = "stdarch-gen-arm"
version = "0.1.0"
dependencies = [
"clap",
"itertools",
"proc-macro2",
"quote",
Expand All @@ -819,13 +839,15 @@ dependencies = [
name = "stdarch-gen-common"
version = "0.1.0"
dependencies = [
"similar",
"tempfile",
]

[[package]]
name = "stdarch-gen-hexagon"
version = "0.1.0"
dependencies = [
"clap",
"regex",
"stdarch-gen-common",
]
Expand All @@ -834,6 +856,7 @@ dependencies = [
name = "stdarch-gen-loongarch"
version = "0.1.0"
dependencies = [
"clap",
"rand 0.9.4",
"stdarch-gen-common",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ FROM ubuntu:25.10
RUN apt-get update && \
apt-get install -y --no-install-recommends \
gcc libc6-dev qemu-user ca-certificates \
gcc-loongarch64-linux-gnu libc6-dev-loong64-cross
gcc-loongarch64-linux-gnu libc6-dev-loong64-cross \
wget

RUN wget https://ci-mirrors.rust-lang.org/llvm/llvm-22.1.4-x86_64.tar.gz -O llvm.tar.xz
RUN mkdir llvm
RUN tar -xvf llvm.tar.xz --strip-components=1 -C llvm

ENV CLANG_PATH="/llvm/bin/clang"
ENV GCC_PATH=loongarch64-linux-gnu-gcc

ENV CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_LINKER=loongarch64-linux-gnu-gcc \
CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_RUNNER="qemu-loongarch64 -cpu max -L /usr/loongarch64-linux-gnu" \
Expand Down
14 changes: 14 additions & 0 deletions library/stdarch/ci/intrinsic-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ case ${TARGET} in
ARCH=x86
RUNTIME_RUSTFLAGS=
;;

loongarch64*)
export CFLAGS="-I/usr/loongarch64-linux-gnu/include/"
ARCH=loongarch64
RUNTIME_RUSTFLAGS=-Ctarget-feature=+lsx,+lasx,+frecipe
;;
*)
;;

Expand All @@ -80,6 +86,14 @@ case "${TARGET}" in
--target "${TARGET}" \
--cc-arg-style "${CC_ARG_STYLE}"
;;
loongarch64*)
cargo run "${INTRINSIC_TEST}" --release \
--bin intrinsic-test -- crates/stdarch-gen-loongarch \
--skip "crates/intrinsic-test/missing_${ARCH}_common.txt" \
--skip "crates/intrinsic-test/missing_${ARCH}_${CC_KIND}.txt" \
--target "${TARGET}" \
--cc-arg-style "${CC_ARG_STYLE}"
;;
*)
cargo run "${INTRINSIC_TEST}" --release \
--bin intrinsic-test -- intrinsics_data/arm_intrinsics.json \
Expand Down
3 changes: 3 additions & 0 deletions library/stdarch/crates/core_arch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ stdarch-test = { version = "0.*", path = "../stdarch-test" }
[target.'cfg(all(target_arch = "x86_64", target_os = "linux"))'.dev-dependencies]
syscalls = { version = "0.6.18", default-features = false }

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_has_reliable_f16)'] }

[lints.clippy]
too_long_first_doc_paragraph = "allow"
missing_transmute_annotations = "allow"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25081,7 +25081,7 @@ pub unsafe fn vst1q_f64_x4(a: *mut f64, b: float64x2x4_t) {
#[stable(feature = "neon_intrinsics", since = "1.59.0")]
pub unsafe fn vst1_lane_f64<const LANE: i32>(a: *mut f64, b: float64x1_t) {
static_assert!(LANE == 0);
*a = simd_extract!(b, LANE as u32);
core::ptr::write_unaligned(a, simd_extract!(b, LANE as u32))
}
#[doc = "Store multiple single-element structures from one, two, three, or four registers"]
#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst1q_lane_f64)"]
Expand All @@ -25094,7 +25094,7 @@ pub unsafe fn vst1_lane_f64<const LANE: i32>(a: *mut f64, b: float64x1_t) {
#[stable(feature = "neon_intrinsics", since = "1.59.0")]
pub unsafe fn vst1q_lane_f64<const LANE: i32>(a: *mut f64, b: float64x2_t) {
static_assert_uimm_bits!(LANE, 1);
*a = simd_extract!(b, LANE as u32);
core::ptr::write_unaligned(a, simd_extract!(b, LANE as u32))
}
#[doc = "Store multiple 2-element structures from two registers"]
#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/vst2_f64)"]
Expand Down
4 changes: 2 additions & 2 deletions library/stdarch/crates/core_arch/src/aarch64/neon/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pub unsafe fn vld1q_dup_f64(ptr: *const f64) -> float64x2_t {
#[stable(feature = "neon_intrinsics", since = "1.59.0")]
pub unsafe fn vld1_lane_f64<const LANE: i32>(ptr: *const f64, src: float64x1_t) -> float64x1_t {
static_assert!(LANE == 0);
simd_insert!(src, LANE as u32, *ptr)
simd_insert!(src, LANE as u32, crate::ptr::read_unaligned(ptr))
}

/// Load one single-element structure to one lane of one register.
Expand All @@ -131,7 +131,7 @@ pub unsafe fn vld1_lane_f64<const LANE: i32>(ptr: *const f64, src: float64x1_t)
#[stable(feature = "neon_intrinsics", since = "1.59.0")]
pub unsafe fn vld1q_lane_f64<const LANE: i32>(ptr: *const f64, src: float64x2_t) -> float64x2_t {
static_assert_uimm_bits!(LANE, 1);
simd_insert!(src, LANE as u32, *ptr)
simd_insert!(src, LANE as u32, crate::ptr::read_unaligned(ptr))
}

/// Bitwise Select instructions. This instruction sets each bit in the destination SIMD&FP register
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
use stdarch_test::assert_instr;

use super::*;
use crate::core_arch::arch::aarch64::*;
use super::{AsSigned, AsUnsigned};
use crate::core_arch::arch::aarch64::*;

#[doc = "Absolute difference"]
#[doc = "[Arm's documentation](https://developer.arm.com/architectures/instruction-sets/intrinsics/svabd[_f32]_m)"]
Expand Down
Loading
Loading