@@ -56,14 +56,14 @@ pub mod arch {
56
56
pub use crate :: core_arch:: aarch64:: * ;
57
57
}
58
58
59
- /// Platform-specific intrinsics for the `riscv ` platform.
59
+ /// Platform-specific intrinsics for the `riscv32 ` platform.
60
60
///
61
61
/// See the [module documentation](../index.html) for more details.
62
- #[ cfg( any( target_arch = "riscv32" , target_arch = "riscv64" , doc) ) ]
63
- #[ doc( cfg( any( target_arch = "riscv32" , target_arch = "riscv64" ) ) ) ]
62
+ #[ cfg( any( target_arch = "riscv32" , doc) ) ]
63
+ #[ doc( cfg( any( target_arch = "riscv32" ) ) ) ]
64
64
#[ unstable( feature = "stdsimd" , issue = "27731" ) ]
65
- pub mod riscv {
66
- pub use crate :: core_arch:: riscv :: * ;
65
+ pub mod riscv32 {
66
+ pub use crate :: core_arch:: riscv32 :: * ;
67
67
}
68
68
69
69
/// Platform-specific intrinsics for the `riscv64` platform.
@@ -73,8 +73,9 @@ pub mod arch {
73
73
#[ doc( cfg( any( target_arch = "riscv64" ) ) ) ]
74
74
#[ unstable( feature = "stdsimd" , issue = "27731" ) ]
75
75
pub mod riscv64 {
76
- pub use crate :: core_arch:: riscv:: * ;
77
76
pub use crate :: core_arch:: riscv64:: * ;
77
+ // RISC-V RV64 supports all RV32 instructions as well in current specifications (2022-01-14).
78
+ pub use crate :: core_arch:: riscv32:: * ;
78
79
}
79
80
80
81
/// Platform-specific intrinsics for the `wasm32` platform.
@@ -275,7 +276,7 @@ mod arm;
275
276
276
277
#[ cfg( any( target_arch = "riscv32" , target_arch = "riscv64" , doc) ) ]
277
278
#[ doc( cfg( any( target_arch = "riscv32" , target_arch = "riscv64" ) ) ) ]
278
- mod riscv ;
279
+ mod riscv32 ;
279
280
280
281
#[ cfg( any( target_arch = "riscv64" , doc) ) ]
281
282
#[ doc( cfg( any( target_arch = "riscv64" ) ) ) ]
0 commit comments