diff options
| author | WANG Rui <wangrui@loongson.cn> | 2024-03-07 15:15:13 +0800 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2024-03-07 23:00:39 +0000 |
| commit | 5fd2d04ef7f8583a595a2ba3bb1c782568b1a1b2 (patch) | |
| tree | 507c9ceda0b8c62f46818657ee3a358bce4a761f /library/stdarch/crates/std_detect | |
| parent | bb147775cc5c7b5e4e898cd18f77fcb729373c7e (diff) | |
| download | rust-5fd2d04ef7f8583a595a2ba3bb1c782568b1a1b2.tar.gz rust-5fd2d04ef7f8583a595a2ba3bb1c782568b1a1b2.zip | |
std_detect: loongarch: Remove features not supported by LLVM
Diffstat (limited to 'library/stdarch/crates/std_detect')
| -rw-r--r-- | library/stdarch/crates/std_detect/src/detect/arch/loongarch.rs | 24 | ||||
| -rw-r--r-- | library/stdarch/crates/std_detect/src/detect/os/linux/loongarch.rs | 8 |
2 files changed, 0 insertions, 32 deletions
diff --git a/library/stdarch/crates/std_detect/src/detect/arch/loongarch.rs b/library/stdarch/crates/std_detect/src/detect/arch/loongarch.rs index 049cb73224a..1db98410fee 100644 --- a/library/stdarch/crates/std_detect/src/detect/arch/loongarch.rs +++ b/library/stdarch/crates/std_detect/src/detect/arch/loongarch.rs @@ -8,41 +8,17 @@ features! { /// Checks if `loongarch` feature is enabled. /// Supported arguments are: /// - /// * `"lam"` /// * `"ual"` - /// * `"fpu"` /// * `"lsx"` /// * `"lasx"` - /// * `"crc32"` - /// * `"complex"` - /// * `"crypto"` /// * `"lvz"` - /// * `"lbtx86"` - /// * `"lbtarm"` - /// * `"lbtmips"` #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] - @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lam: "lam"; - /// LAM @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] ual: "ual"; /// UAL - @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] fpu: "fpu"; - /// FPU @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lsx: "lsx"; /// LSX @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lasx: "lasx"; /// LASX - @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] crc32: "crc32"; - /// FPU - @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] complex: "complex"; - /// Complex - @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] crypto: "crypto"; - /// Crypto @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lvz: "lvz"; /// LVZ - @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lbtx86: "lbtx86"; - /// LBT.X86 - @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lbtarm: "lbtarm"; - /// LBT.ARM - @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lbtmips: "lbtmips"; - /// LBT.MIPS } diff --git a/library/stdarch/crates/std_detect/src/detect/os/linux/loongarch.rs b/library/stdarch/crates/std_detect/src/detect/os/linux/loongarch.rs index a2c6d308e6a..92d7d56f7cc 100644 --- a/library/stdarch/crates/std_detect/src/detect/os/linux/loongarch.rs +++ b/library/stdarch/crates/std_detect/src/detect/os/linux/loongarch.rs @@ -16,18 +16,10 @@ pub(crate) fn detect_features() -> cache::Initializer { // // [hwcap]: https://github.com/torvalds/linux/blob/master/arch/loongarch/include/uapi/asm/hwcap.h if let Ok(auxv) = auxvec::auxv() { - enable_feature(&mut value, Feature::lam, bit::test(auxv.hwcap, 1)); enable_feature(&mut value, Feature::ual, bit::test(auxv.hwcap, 2)); - enable_feature(&mut value, Feature::fpu, bit::test(auxv.hwcap, 3)); enable_feature(&mut value, Feature::lsx, bit::test(auxv.hwcap, 4)); enable_feature(&mut value, Feature::lasx, bit::test(auxv.hwcap, 5)); - enable_feature(&mut value, Feature::crc32, bit::test(auxv.hwcap, 6)); - enable_feature(&mut value, Feature::complex, bit::test(auxv.hwcap, 7)); - enable_feature(&mut value, Feature::crypto, bit::test(auxv.hwcap, 8)); enable_feature(&mut value, Feature::lvz, bit::test(auxv.hwcap, 9)); - enable_feature(&mut value, Feature::lbtx86, bit::test(auxv.hwcap, 10)); - enable_feature(&mut value, Feature::lbtarm, bit::test(auxv.hwcap, 11)); - enable_feature(&mut value, Feature::lbtmips, bit::test(auxv.hwcap, 12)); return value; } value |
