ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

bext

T1 riscv alu insn
Single-Bit extract (Register)
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zbs
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZbs

Summary

Returns a single bit extracted from xs1 at the index specified in xs2. The index is read from the lower log2(XLEN) bits of xs2.

Syntax / Encoding

bext xd, xs1, xs2 | 0100100xxxxxxxxxx101xxxxx0110011 (mask=0xfe00707f match=0x48005033)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV0100100xxxxxxxxxx101xxxxx01100110xfe00707f / 0x48005033

Operands

NameDescription
xs2bits [24:20]
xs1bits [19:15]
xdbits [11:7]