Zbb Extension

Versions

1.0.0
State

ratified

Ratification date

2021-06

Synopsis

Basic bit manipulation

Instructions

The following instructions are defined by this extension:

andn

AND with inverted operand

clz

Count leading zero bits

clzw

Count leading zero bits in word

cpop

Count set bits

cpopw

Count set bits in word

ctz

Count trailing zero bits

ctzw

Count trailing zero bits in word

max

Maximum

maxu

Unsigned maximum

min

Minimum

minu

Unsigned minumum

orc.b

Bitware OR-combine, byte granule

orn

OR with inverted operand

rev8

Byte-reverse register (RV64 encoding)

rol

Rotate left (Register)

rolw

Rotate left word (Register)

ror

Rotate right (Register)

rori

Rotate right (Immediate)

roriw

Rotate right word (Immediate)

rorw

Rotate right word (Register)

sext.b

Sign-extend byte

sext.h

Sign-extend halfword

xnor

Exclusive NOR

zext.h

Zero-extend halfword