bset

Operands

reg, reg, reg

Set bit : Set t1 to t2 with the single bit numbered by the low bits of t3 set

Variants

  • Set bit : Set t1 to t2 with the single bit numbered by the low bits of t3 set bset t1,t2,t3
.text
li t0, 9
li t1, 2
# t0=9, t1=2; bset writes 13 to t2.
bset t2, t0, t1