about summary refs log tree commit diff
path: root/library/stdarch
AgeCommit message (Collapse)AuthorLines
2025-07-08Remove custom josh-sync scriptsJakub Beránek-768/+0
2025-07-07Use `simd_funnel_sh{l,r}` and `simd_round_ties_even` to remove uses of LLVM ↵sayantn-163/+47
intrinsics
2025-07-07some clippy fixesMarijn Schouten-14/+12
2025-07-07std_detect: RISC-V Linux: Ergonomic querying with `riscv_hwprobe`Tsukasa OI-41/+42
Originally, we used an array of `riscv_hwprobe` directly and indexed using raw numbers, making correspondence between the index and the query key less obvious. We also frequently used `out[idx].key != -1` to test whether the key is supported by the `riscv_hwprobe` system call (on the Linux kernel version we are testing) but we'd better to integrate with an operation to retrieve the value. This commit improves the ergonomics of feature querying by: 1. Utilizing macros to a. enable indexing by identifier names and b. encapsulate accesses to the `riscv_hwprobe` array to query and 2. New method `riscv_hwprobe::get()` returning `Option<u64>`, integrating availability checking and value retrieval. It also removes `has_ima` for now because it's redundant if we only need to test for single base behavior.
2025-07-07Prepare for merging from rust-lang/rustJakub Beránek-0/+1
This updates the rust-version file to 1b61d43bdbf875183b1f436302d62ff93f9a6bba.
2025-07-07Add config files for `rustc-josh-sync`Jakub Beránek-0/+3
2025-07-07Update README.mdkilavvy-1/+1
- Update ui.md - Update type-alias-impl-trait.md - Update README.md
2025-07-07Remove std-detect dev dependency in core_archJakub Beránek-6/+2
2025-07-07Mark `avx` broadcast intrinsics as safeokaneco-7/+7
2025-07-07Use simd_extract! macro instead of calling simd_extract directlyltdk-6/+6
2025-07-07Update stabilization version of certain x86 intrinsics to 1.89Amanieu d'Antras-27/+27
These were left as `CURRENT_RUSTC_VERSION` in the submodule.
2025-07-07Add josh synchronization scriptsJakub Beránek-0/+817
2025-07-07Add empty rust-version fileJakub Beránek-0/+0
2025-07-07use `is_multiple_of` to check if an addr is alignedFolkert de Vries-4/+8
2025-07-03std_detect: Tidying of slice lengthTsukasa OI-2/+1
We don't need to put the length of the `riscv_hwprobe` array into a variable. This commit removes that variable and gives the length of the output slice to the `__riscv_hwprobe` directly.
2025-06-28loongarch: Add basic support for LoongArch32WANG Rui-247/+327
2025-06-19s390x: add feature detection for the z17 target featuresFolkert de Vries-56/+97
2025-06-19the `generic_arg_infer` feature is now stable on nightlyFolkert de Vries-1/+0
2025-06-17Testsatiscugcat-17/+14
2025-06-17Ran cargo fmt, removed unexpected charactersatiscugcat-28/+25
2025-06-17Moved const fn outside unsafe blocksatiscugcat-11/+13
2025-06-17Changed implementation of _mm{256,512}_alignr_epi8 to match that of ↵satiscugcat-350/+149
_mm_alignr_epi8 in ssse3.rs, also removed the import of the unreachable unchecked hint as it was no longer necessary
2025-06-17Changed implementation of bsrli in avx512.rs to match that of bslli, fixing ↵satiscugcat-195/+78
a bug in the process.
2025-06-17Changed the implementation of bsrli to match bslli in avx2 intrinsicssatiscugcat-132/+46
2025-06-17Fixing mistake in previous commitAniket Mishra-1/+1
2025-06-17Removal of redundant mod operation in _mm256_alignr_epi8Aniket Mishra-1/+1
2025-06-17Fix in erroneous implementation of _mm256_bsrli_epi128Aniket Mishra-1/+1
Fixing the issue mentioned in issue #1822 of rust-lang/stdarch.
2025-06-17Add triagebot config for subtree syncsJakub Beránek-0/+10
Adds checking of PR descriptions to avoid relative issue links (without repository prefix) and mentions in commits.
2025-06-12Add lockfileJakub Beránek-1/+965
2025-06-11Fixes to compile with latest Rust nightlyAmanieu d'Antras-5/+3
2025-06-09Darwin AArch64 detection updateLaine Taffin Altman-0/+8
Synchronizes the lists of detectable features with macOS 15.5 “Sequoia” as of June 9, 2025.
2025-06-09Remove `compiler-builtins` from `rustc-dep-of-std` dependenciesTrevor Gross-2/+0
Since [1], this will come automatically from `rustc-std-workspace-core` and the crates.io dependency should no longer be specified. [1]: https://github.com/rust-lang/rust/pull/141993
2025-06-09add s390x z17 target featuresFolkert de Vries-0/+15
2025-06-02Stabilize AVX512 intrinsicsAmanieu d'Antras-4595/+4595
FCP completed in tracking issue rust-lang/rust#111137
2025-06-02Fix incorrect intrinsic name in WASMsayantn-2/+2
2025-06-02Fix incorrect intrinsic name in X86sayantn-11/+11
2025-06-02Remove uses of deprecated type-specific pointers from ARMsayantn-380/+380
2025-06-02Use correct LLVM intrinsic for `vmull` and `vaddv`sayantn-36/+36
2025-06-02Use rust intrinsics for more ARM intrinsicssayantn-527/+73
2025-06-02Mark Neon f16 vectors as unstableAdam Gemmell-4/+9
2025-06-02Revert vbsl[q]_f16 to unstableAdam Gemmell-18/+3
2025-06-01RISC-V: Linux 6.15 `riscv_hwprobe` supportTsukasa OI-3/+39
This commit adds support for `riscv_hwprobe` on the Linux kernel 6.15. It adds feature detection of 8 extensions (4 of them are new in this). Existing RISC-V Extensions: 1. "Zicntr" 2. "Zihpm" 3. "Zalrsc" 4. "Zaamo" New RISC-V Extensions: 5. "Zicbom" 6. "Zfbfmin" 7. "Zvfbfmin" 8. "Zvfbfwma"
2025-06-01use `simd_bitreverse` on `aarch64`Folkert de Vries-21/+5
2025-05-31intrinsic-test: Reverse `has_constraints()` conditionTsukasa OI-1/+1
It seems it returns true when *no* constraints are found, opposite to the expected behavior of the function name. This commit reverses condition as the name suggests.
2025-05-31intrinsic-test: Use `c_prefix` to generate type namesTsukasa OI-1/+1
To make the type names to test correct, this commit replaces occurrences of `rust_prefix` to `c_prefix` where necessary.
2025-05-31Stabilize `sha512`, `sm3` and `sm4` intrinsics and runtime detectionsayantn-13/+13
2025-05-31Stabilize keylocker intrinsics and runtime detectionsayantn-14/+14
2025-05-31intrinsic-test: Modernization of the coding styleTsukasa OI-95/+91
It modernizes the coding style of the crate intrinsic-test by fixing Clippy warnings. Clippy: rust version 1.89.0-nightly (6f6971078 2025-05-28) Number of Fixed Warnings: 36/36
2025-05-31stdarch_examples: Modernization of the coding styleTsukasa OI-24/+24
It modernizes the coding style of the crate stdarch_examples (an example "connect5") by fixing Clippy warnings (except clippy::manual_range_contains in which "fixing" the warning will complicate the code). Clippy: rust version 1.89.0-nightly (6f6971078 2025-05-28) Number of Fixed Warnings: 6/6
2025-05-31stdarch-verify: Modernization of the coding styleTsukasa OI-0/+2
It modernizes the coding style of the crate stdarch-verify by dealing with Clippy warnings (allows clippy::collapsible_if but review may be required for later changes). Clippy: rust version 1.89.0-nightly (6f6971078 2025-05-28) Number of Fixed Warnings: 4/4