File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ macro_rules! int_divrem_guard {
99
99
100
100
// aarch64 div fails for arbitrary `v % 0`, mod fails when rhs is MIN, for non-powers-of-two
101
101
// these operations aren't vectorized on aarch64 anyway
102
- #[ cfg( target_arch = "aarch64" ) ]
102
+ #[ cfg( any ( target_arch = "aarch64" , target_arch = "riscv32" , target_arch = "riscv64" ) ) ]
103
103
{
104
104
let mut out = Simd :: splat( 0 as _) ;
105
105
for i in 0 ..Self :: LEN {
@@ -108,7 +108,7 @@ macro_rules! int_divrem_guard {
108
108
out
109
109
}
110
110
111
- #[ cfg( not( target_arch = "aarch64" ) ) ]
111
+ #[ cfg( not( any ( target_arch = "aarch64" , target_arch = "riscv32" , target_arch = "riscv64" ) ) ) ]
112
112
{
113
113
// Safety: $lhs and rhs are vectors
114
114
unsafe { core:: intrinsics:: simd:: $simd_call( $lhs, rhs) }
You can’t perform that action at this time.
0 commit comments