Skip to content

Commit dbb244a

Browse files
authored
Merge pull request rust-lang#536 from AaronKutch/change_riscv_zbb
2 parents 92554bb + fd46ea5 commit dbb244a

File tree

1 file changed

+3
-2
lines changed
  • src/int/specialized_div_rem

1 file changed

+3
-2
lines changed

src/int/specialized_div_rem/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,9 @@ const USE_LZ: bool = {
9595
// LZD or LZCNT on SPARC only exists for the VIS 3 extension and later.
9696
cfg!(target_feature = "vis3")
9797
} else if cfg!(any(target_arch = "riscv32", target_arch = "riscv64")) {
98-
// The `B` extension on RISC-V determines if a CLZ assembly instruction exists
99-
cfg!(target_feature = "b")
98+
// The 'Zbb' Basic Bit-Manipulation extension on RISC-V
99+
// determines if a CLZ assembly instruction exists
100+
cfg!(target_feature = "zbb")
100101
} else {
101102
// All other common targets Rust supports should have CLZ instructions
102103
true

0 commit comments

Comments
 (0)