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

orc.b

T1 riscv bitmanip insn
Bitware OR-combine, byte granule
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zbb
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZbb

Summary

Combines the bits within each byte using bitwise logical OR. This sets the bits of each byte in the result xd to all zeros if no bit within the respective byte of xs1 is set, or to all ones if any bit within the respective byte of xs1 is set.

Syntax / Encoding

orc.b xd, xs1 | 001010000111xxxxx101xxxxx0010011 (mask=0xfff0707f match=0x28705013)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV001010000111xxxxx101xxxxx00100110xfff0707f / 0x28705013

Operands

NameDescription
xs1bits [19:15]
xdbits [11:7]

Reference Notes

Combines the bits within each byte using bitwise logical OR. This sets the bits
of each byte in the result xd to all zeros if no bit within the respective byte
of xs1 is set, or to all ones if any bit within the respective byte of xs1 is set.