Skip to content

Commit 45ea228

Browse files
committed
completely remove rva23s64
1 parent ce07b5d commit 45ea228

File tree

3 files changed

+1
-89
lines changed

3 files changed

+1
-89
lines changed

compiler/rustc_codegen_llvm/src/llvm_util.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,7 @@ pub(crate) fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> Option<LLVMFea
278278
None
279279
}
280280
// Filter out features that are not supported by the current LLVM version
281-
("riscv32" | "riscv64", "zacas" | "rva23s64" | "rva23u64" | "sha" | "ssnpm" | "supm")
282-
if get_version().0 < 20 =>
283-
{
284-
None
285-
}
281+
("riscv32" | "riscv64", "zacas" | "rva23u64" | "supm") if get_version().0 < 20 => None,
286282
(
287283
"s390x",
288284
"message-security-assist-extension12"

compiler/rustc_target/src/target_features.rs

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -597,62 +597,6 @@ static RISCV_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
597597
),
598598
("m", Stable, &[]),
599599
("relax", Unstable(sym::riscv_target_feature), &[]),
600-
(
601-
"rva23s64",
602-
Unstable(sym::riscv_target_feature),
603-
&[
604-
"m",
605-
"a",
606-
"f",
607-
"d",
608-
"c",
609-
"b",
610-
"v",
611-
"zicsr",
612-
"zicntr",
613-
"zihpm",
614-
"ziccif",
615-
"ziccrse",
616-
"ziccamoa",
617-
"zicclsm",
618-
"zic64b",
619-
"za64rs",
620-
"zihintpause",
621-
"zba",
622-
"zbb",
623-
"zbs",
624-
"zicbom",
625-
"zicbop",
626-
"zicboz",
627-
"zfhmin",
628-
"zkt",
629-
"zvfhmin",
630-
"zvbb",
631-
"zvkt",
632-
"zihintntl",
633-
"zicond",
634-
"zimop",
635-
"zcmop",
636-
"zcb",
637-
"zfa",
638-
"zawrs",
639-
"svbare",
640-
"svade",
641-
"ssccptr",
642-
"sstvecd",
643-
"sstvala",
644-
"sscounterenw",
645-
"svpbmt",
646-
"svinval",
647-
"svnapot",
648-
"sstc",
649-
"sscofpmf",
650-
"ssnpm",
651-
"ssu64xl",
652-
"sha",
653-
"supm",
654-
],
655-
),
656600
(
657601
"rva23u64",
658602
Unstable(sym::riscv_target_feature),
@@ -695,21 +639,7 @@ static RISCV_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
695639
"supm",
696640
],
697641
),
698-
("sha", Unstable(sym::riscv_target_feature), &[]),
699-
("ssccptr", Unstable(sym::riscv_target_feature), &[]),
700-
("sscofpmf", Unstable(sym::riscv_target_feature), &[]),
701-
("sscounterenw", Unstable(sym::riscv_target_feature), &[]),
702-
("ssnpm", Unstable(sym::riscv_target_feature), &[]),
703-
("sstc", Unstable(sym::riscv_target_feature), &[]),
704-
("sstvala", Unstable(sym::riscv_target_feature), &[]),
705-
("sstvecd", Unstable(sym::riscv_target_feature), &[]),
706-
("ssu64xl", Unstable(sym::riscv_target_feature), &[]),
707642
("supm", Unstable(sym::riscv_target_feature), &[]),
708-
("svade", Unstable(sym::riscv_target_feature), &[]),
709-
("svbare", Unstable(sym::riscv_target_feature), &[]),
710-
("svinval", Unstable(sym::riscv_target_feature), &[]),
711-
("svnapot", Unstable(sym::riscv_target_feature), &[]),
712-
("svpbmt", Unstable(sym::riscv_target_feature), &[]),
713643
("unaligned-scalar-mem", Unstable(sym::riscv_target_feature), &[]),
714644
("unaligned-vector-mem", Unstable(sym::riscv_target_feature), &[]),
715645
("v", Unstable(sym::riscv_target_feature), &["zvl128b", "zve64d"]),

tests/ui/check-cfg/target_feature.stderr

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ LL | cfg!(target_feature = "_UNEXPECTED_VALUE");
241241
`relax`
242242
`relaxed-simd`
243243
`rtm`
244-
`rva23s64`
245244
`rva23u64`
246245
`sb`
247246
`scq`
@@ -294,27 +293,17 @@ LL | cfg!(target_feature = "_UNEXPECTED_VALUE");
294293
`soft-float`
295294
`spe`
296295
`ssbs`
297-
`ssccptr`
298-
`sscofpmf`
299-
`sscounterenw`
300296
`sse`
301297
`sse2`
302298
`sse3`
303299
`sse4.1`
304300
`sse4.2`
305301
`sse4a`
306-
`ssnpm`
307302
`ssse3`
308-
`sstc`
309-
`sstvala`
310-
`sstvecd`
311-
`ssu64xl`
312303
`ssve-fp8dot2`
313304
`ssve-fp8dot4`
314305
`ssve-fp8fma`
315306
`supm`
316-
`svade`
317-
`svbare`
318307
`sve`
319308
`sve-b16b16`
320309
`sve2`
@@ -323,9 +312,6 @@ LL | cfg!(target_feature = "_UNEXPECTED_VALUE");
323312
`sve2-sha3`
324313
`sve2-sm4`
325314
`sve2p1`
326-
`svinval`
327-
`svnapot`
328-
`svpbmt`
329315
`tail-call`
330316
`tbm`
331317
`thumb-mode`

0 commit comments

Comments
 (0)