Skip to content

Commit d25fa4e

Browse files
committed
Mark feature with missing corresponding target feature cfgs as such
Computed by diffing of: $ rg "[ ]+@feature: .*: \"(.*)\";" -r '$1' --no-filename \ crates/std_detect/src/detect/ | sort | uniq With (from the main Rust repo[^1]): $ rg "target_feature" tests/ui/check-cfg/well-known-values.stderr [^1]: https://github.com/rust-lang/rust/blob/e8c698bb3bdc121ac7f65919bd16d22f6567a3f1/tests/ui/check-cfg/well-known-values.stderr#L177
1 parent 5100670 commit d25fa4e

File tree

6 files changed

+27
-0
lines changed

6 files changed

+27
-0
lines changed

crates/std_detect/src/detect/arch/aarch64.rs

+1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ features! {
160160
@FEATURE: #[unstable(feature = "stdarch_aarch64_feature_detection", issue = "127764")] fp8fma: "fp8fma";
161161
/// FEAT_FP8FMA (F8FMA Instructions)
162162
@FEATURE: #[unstable(feature = "stdarch_aarch64_feature_detection", issue = "127764")] fpmr: "fpmr";
163+
without cfg check: true;
163164
/// FEAT_FPMR (Special-purpose AArch64-FPMR register)
164165
@FEATURE: #[stable(feature = "simd_aarch64", since = "1.60.0")] frintts: "frintts";
165166
/// FEAT_FRINTTS (float to integer rounding instructions)

crates/std_detect/src/detect/arch/arm.rs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ features! {
1414
@FEATURE: #[unstable(feature = "stdarch_arm_feature_detection", issue = "111190")] neon: "neon";
1515
/// ARM Advanced SIMD (NEON) - Aarch32
1616
@FEATURE: #[unstable(feature = "stdarch_arm_feature_detection", issue = "111190")] pmull: "pmull";
17+
without cfg check: true;
1718
/// Polynomial Multiply
1819
@FEATURE: #[unstable(feature = "stdarch_arm_feature_detection", issue = "111190")] crc: "crc";
1920
/// CRC32 (Cyclic Redundancy Check)

crates/std_detect/src/detect/arch/powerpc.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ features! {
1212
@FEATURE: #[unstable(feature = "stdarch_powerpc_feature_detection", issue = "111191")] vsx: "vsx";
1313
/// VSX
1414
@FEATURE: #[unstable(feature = "stdarch_powerpc_feature_detection", issue = "111191")] power8: "power8";
15+
without cfg check: true;
1516
/// Power8
1617
}

crates/std_detect/src/detect/arch/powerpc64.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ features! {
1212
@FEATURE: #[unstable(feature = "stdarch_powerpc_feature_detection", issue = "111191")] vsx: "vsx";
1313
/// VSX
1414
@FEATURE: #[unstable(feature = "stdarch_powerpc_feature_detection", issue = "111191")] power8: "power8";
15+
without cfg check: true;
1516
/// Power8
1617
}

crates/std_detect/src/detect/arch/riscv.rs

+19
Original file line numberDiff line numberDiff line change
@@ -90,28 +90,36 @@ features! {
9090
/// [ISA manual]: https://github.com/riscv/riscv-isa-manual/
9191
#[stable(feature = "riscv_ratified", since = "1.76.0")]
9292
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] rv32i: "rv32i";
93+
without cfg check: true;
9394
/// RV32I Base Integer Instruction Set
9495
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zifencei: "zifencei";
96+
without cfg check: true;
9597
/// "Zifencei" Instruction-Fetch Fence
9698
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zihintpause: "zihintpause";
99+
without cfg check: true;
97100
/// "Zihintpause" Pause Hint
98101
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] rv64i: "rv64i";
102+
without cfg check: true;
99103
/// RV64I Base Integer Instruction Set
100104
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] m: "m";
101105
/// "M" Standard Extension for Integer Multiplication and Division
102106
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] a: "a";
103107
/// "A" Standard Extension for Atomic Instructions
104108
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zicsr: "zicsr";
109+
without cfg check: true;
105110
/// "Zicsr", Control and Status Register (CSR) Instructions
106111
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zicntr: "zicntr";
112+
without cfg check: true;
107113
/// "Zicntr", Standard Extension for Base Counters and Timers
108114
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zihpm: "zihpm";
115+
without cfg check: true;
109116
/// "Zihpm", Standard Extension for Hardware Performance Counters
110117
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] f: "f";
111118
/// "F" Standard Extension for Single-Precision Floating-Point
112119
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] d: "d";
113120
/// "D" Standard Extension for Double-Precision Floating-Point
114121
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] q: "q";
122+
without cfg check: true;
115123
/// "Q" Standard Extension for Quad-Precision Floating-Point
116124
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] c: "c";
117125
/// "C" Standard Extension for Compressed Instructions
@@ -125,34 +133,45 @@ features! {
125133
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zhinxmin: "zhinxmin";
126134
/// "Zhinxmin" Standard Extension for Minimal Half-Precision Floating-Point in Integer Registers
127135
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] ztso: "ztso";
136+
without cfg check: true;
128137
/// "Ztso" Standard Extension for Total Store Ordering
129138
130139
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] rv32e: "rv32e";
140+
without cfg check: true;
131141
/// RV32E Base Integer Instruction Set
132142
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] rv128i: "rv128i";
143+
without cfg check: true;
133144
/// RV128I Base Integer Instruction Set
134145
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zfh: "zfh";
135146
/// "Zfh" Standard Extension for 16-Bit Half-Precision Floating-Point
136147
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zfhmin: "zfhmin";
137148
/// "Zfhmin" Standard Extension for Minimal Half-Precision Floating-Point Support
138149
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] j: "j";
150+
without cfg check: true;
139151
/// "J" Standard Extension for Dynamically Translated Languages
140152
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] p: "p";
153+
without cfg check: true;
141154
/// "P" Standard Extension for Packed-SIMD Instructions
142155
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] v: "v";
143156
/// "V" Standard Extension for Vector Operations
144157
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] zam: "zam";
158+
without cfg check: true;
145159
/// "Zam" Standard Extension for Misaligned Atomics
146160
147161
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] s: "s";
162+
without cfg check: true;
148163
/// Supervisor-Level ISA
149164
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] svnapot: "svnapot";
165+
without cfg check: true;
150166
/// "Svnapot" Standard Extension for NAPOT Translation Contiguity
151167
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] svpbmt: "svpbmt";
168+
without cfg check: true;
152169
/// "Svpbmt" Standard Extension for Page-Based Memory Types
153170
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] svinval: "svinval";
171+
without cfg check: true;
154172
/// "Svinval" Standard Extension for Fine-Grained Address-Translation Cache Invalidation
155173
@FEATURE: #[unstable(feature = "stdarch_riscv_feature_detection", issue = "111192")] h: "h";
174+
without cfg check: true;
156175
/// Hypervisor Extension
157176
158177
@FEATURE: #[stable(feature = "riscv_ratified", since = "1.76.0")] zba: "zba";

crates/std_detect/src/detect/arch/x86.rs

+4
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,10 @@ features! {
123123
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] rdseed: "rdseed";
124124
/// RDSEED
125125
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] tsc: "tsc";
126+
without cfg check: true;
126127
/// TSC (Time Stamp Counter)
127128
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] mmx: "mmx";
129+
without cfg check: true;
128130
/// MMX (MultiMedia eXtensions)
129131
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] sse: "sse";
130132
/// SSE (Streaming SIMD Extensions)
@@ -157,8 +159,10 @@ features! {
157159
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512cd: "avx512cd" ;
158160
/// AVX-512 CD (Conflict Detection Instructions)
159161
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512er: "avx512er";
162+
without cfg check: true;
160163
/// AVX-512 ER (Expo nential and Reciprocal Instructions)
161164
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512pf: "avx512pf";
165+
without cfg check: true;
162166
/// AVX-512 PF (Prefetch Instructions)
163167
@FEATURE: #[stable(feature = "simd_x86", since = "1.27.0")] avx512bw: "avx512bw";
164168
/// AVX-512 BW (Byte and Word Instructions)

0 commit comments

Comments
 (0)