about summary refs log tree commit diff
path: root/library/stdarch
AgeCommit message (Collapse)AuthorLines
2023-04-08Fix CIAmanieu d'Antras-11/+6
2023-04-08stdarch-test: Ignore `{evex}` prefix emitted by recent objdumpAmanieu d'Antras-1/+1
2023-04-01std_detect: Remove support for arm crypto target featureTaiki Endo-24/+2
2023-04-01core_arch: Remove uses of arm crypto target featureTaiki Endo-56/+42
2023-04-01std_detect: Always avoid dlsym on *-android* targetsTaiki Endo-8/+18
2023-03-30Update intrinsic tests for LLVM 16Amanieu d'Antras-29/+53
2023-03-25Fix the powerpc feature guardsLuca Barbato-3/+4
Now the documentation should be generated correctly and vsx isn't always present.
2023-03-25std_detect: Unbreak auxv_from_fileLuca Barbato-7/+6
Discovered on powerpc64 where it crashes since it has more entries.
2023-03-24Mark more arm_shared intrinsics and types as stable in docsAmanieu d'Antras-464/+464
This is a follow-up to #1345 where these appeared as unstable in the standard library docs because they are only stabilized for ARM. They were missed in the original PR.
2023-03-24core_arch: Unbreak powerpc64 testsLuca Barbato-19/+31
2023-03-19Allow `internal_features`Nilstrieb-0/+3
2023-03-19core_arch: Update cmpxchg16b docs and fix feature nameTaiki Endo-7/+5
- Fix a typo in the feature name - Update docs to reflect changes in behavior on invalid ordering in stabilized PR: invalid ordering is no longer UB, just causes panic as well as compare_exchange
2023-03-19Don't try to be clever with archAlex Crichton-2/+2
2023-03-19wasm32: Add relaxed simd instructionsAlex Crichton-7/+458
This commit adds intrinsics to the `wasm32` to support the [relaxed SIMD proposal][proposal]. These are added with the same naming conventions of existing simd-related intrinsics for wasm which is similar to the instruction name but matches sign in a few places. This additionally updates Wasmtime to execute tests with support for the relaxed simd proposal. No release has been made yet so this uses the `dev` release, and I can make a PR in April when the support in Wasmtime has been released to an official release. The `wasmprinter` crate is also updated to understand these instruction opcodes as well. Documentation has been added for all intrinsics, but tests have only been added for some of them so far. I hope to follow-up later with more tests. [proposal]: https://github.com/WebAssembly/relaxed-simd
2023-03-12Implemented is_x86_feature_detected!(ermsb)Chase Wilson-0/+5
2023-03-12Stabilize f16c intrinsicsKathryn Long-0/+4
2023-03-12add f16c to x86 detection testKathryn Long-0/+2
2023-03-05Replace associated const hacks with inline constsAmanieu d'Antras-2217/+2088
Fixes #1368
2023-03-05Re-add #![feature(target_feature_11)]Taiki Endo-0/+1
We removed this in 307c42fbf4bdfdda2c46fdc1d330cc61d96b5182, but the stabilization was reverted in https://github.com/rust-lang/rust/pull/108654.
2023-03-01std_detect: Support run-time detection of crc/aes/sha2/crypto on arm FreeBSDTaiki Endo-4/+25
2023-03-01std_detect: Support run-time detection of fp on aarch64 WindowsTaiki Endo-13/+12
According to google/cpu_features, IsProcessorFeaturePresent(PF_ARM_VFP_32_REGISTERS_AVAILABLE) returns whether fp is available. https://github.com/google/cpu_features/blob/a6bf4f9031ec601f905660b8cef82d7478b33d64/src/impl_aarch64_windows.c#L112-L113
2023-03-01Fix stable_features warningsTaiki Endo-2/+0
``` warning: the feature `cmpxchg16b_target_feature` has been stable since 1.69.0-nightly and no longer requires an attribute to enable --> crates/core_arch/src/lib.rs:24:5 | 24 | cmpxchg16b_target_feature, | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(stable_features)]` on by default warning: the feature `target_feature_11` has been stable since 1.69.0-nightly and no longer requires an attribute to enable --> crates/core_arch/src/lib.rs:34:5 | 34 | target_feature_11, | ^^^^^^^^^^^^^^^^^ ```
2023-03-01Merge core_arch/tests/cpu-detection.rs to std_detect/tests/cpu-detection.rsTaiki Endo-72/+12
Except for the recently added `x86_deprecated` test, `core_arch/tests/cpu-detection.rs` is a subset of `std_detect/tests/cpu-detection.rs`.
2023-02-23Fix typoKuba Jaroszewski-1/+1
2023-02-18Update Intel Intrinsics Guide linksАртём Павлов-4549/+4549
2023-02-18Fix typobwmf2-67/+67
2023-02-13std_detect: Remove extra cfgTaiki Endo-2/+2
This module is already `#[cfg(target_arch = "aarch64")]`.
2023-02-13std_detect: Only check features that are known to be available on armv8.0 ↵Taiki Endo-8/+28
cores if CPU is Exynos 9810
2023-02-13std_detect: Workaround Exynos 9810 bug on aarch64 AndroidTaiki Endo-0/+19
Samsung Exynos 9810 has a bug that big and little cores have different ISAs. And on older Android (pre-9), the kernel incorrectly reports that features available only on some cores are available on all cores. https://reviews.llvm.org/D114523
2023-02-11std_detect: Support run-time detection of FEAT_LSE2 on aarch64 BSD (#1379)Taiki Endo-10/+25
2023-02-11std_detect: Update platform support docs (#1380)Taiki Endo-4/+12
2023-02-07update the URL of Intel CPUID reference book (#1376)Felix-1/+1
2023-02-03std_detect: Always avoid dlsym on *-linux-gnu* targets (#1375)Taiki Endo-3/+19
2023-01-26std_detect: Support run-time detection on aarch64 OpenBSDTaiki Endo-24/+91
2023-01-26std_detect: Split os/aarch64.rs' detect_features into reading and parsingTaiki Endo-63/+72
2023-01-26std_detect: Move aarch64 freebsd test to tests/cpu-detection.rsTaiki Endo-18/+20
2023-01-23std_detect: Add test for feature detection on aarch64 WindowsTaiki Endo-0/+14
2023-01-23std_detect: Support detecting lse/dotprod/jsconv/rcpc on aarch64 WindowsTaiki Endo-0/+20
2023-01-23Check and pass the ACLE licence on to generated tests.Jacob Bramley-15/+86
The generated tests are transient, and aren't committed, so this is primarily a safety check.
2023-01-23Declare licence for crates/intrinsics-test.Jacob Bramley-0/+227
2023-01-22Remove obsolete cfg for nvptxUrgau-4/+4
Following to the compiler MCP 496 (https://github.com/rust-lang/compiler-team/issues/496)
2023-01-22Don't declare f16c_target_feature.Jacob Bramley-1/+0
f16c_target_feature was recently stabilised. This fixes a warning that results in a CI failure (due to `-D stable-features`) with current nightly Rust.
2023-01-10use inline const for last simd_shuffle argumentRalf Jung-1905/+1789
2023-01-09Remove some trailing whitespace.Jacob Bramley-1/+1
2023-01-09Match Neon test features to their intrinsics.Jacob Bramley-172/+199
The tests can run if and only if the target_features for the corresponding intrinsics are detected at run-time, so make sure that the tests have an appropriate `simd_test()`. This fixes some failures due to tests running when they shouldn't. For example, some tests would fail on hardware that lacks "fcma".
2023-01-09Decouple TargetFeature strings.Jacob Bramley-209/+300
"arm" and "aarch64" support different sets of `target_feature` and `simd_test` arguments, and for "arm", the set of features that can be dynamically detected is different again. Restructure the generator code to allow this to be expressed accurately (in future patches). This implementation preserves the way that target features are specified for shared intrinsics, because this has an impact on the generated documentation. In particular, rustdoc cannot look inside `cfg_attr(target_arch = ...)` tests, so we use unconditional `target_feature` attributes where possible.
2023-01-06Resolve old FIXME comments (#1364)Nugine-6/+3
2023-01-05Detect MOVBE (#1356)Caleb Zulawski-0/+7
2023-01-05Stabilize cmpxchg16b instrinsic (#1358)Nugine-6/+10
Resolves https://github.com/rust-lang/stdarch/issues/827
2022-12-11Move vector combine intrisics to arm/neon.rs (#1363)Ruben De Smet-177/+209