Does ORC.B access memory?
No. It only reads and writes integer registers; any memory access must be performed by a separate load or store instruction.
Bitwise OR-combine, byte granule
Byte-granule OR-combine: for each byte of rs, if any bit is set, that byte in rd becomes all-ones, else all-zeros. Used in string processing (strlen/strcpy) to detect zero bytes. Part of Zbb.
ORC.B is a B/Zbb instruction for byte-wise OR-combine. This page is checked against the official B extension semantics, with emphasis on XLEN, W suffixes, .uw suffixes, and bitwise or rotate boundaries.
Understand this scenario with real code like «orc.b x10, x11 ; for each byte: all-1s if any bit set, else 0».
Understand this scenario with real code like «orc.b x10, x11 ; for each byte: all-1s if any bit set, else 0».
Understand this scenario with real code like «orc.b x10, x11 ; for each byte: all-1s if any bit set, else 0».
No. It only reads and writes integer registers; any memory access must be performed by a separate load or store instruction.
Except that W-suffixed forms produce a 32-bit result then sign-extend and .uw forms first extract a 32-bit unsigned operand, the result is written to rd at XLEN width.