Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 223 Bytes

12.md

File metadata and controls

22 lines (17 loc) · 223 Bytes

移位指令

sll

slli

例程1

计算 7×7:

addi a0, zero, 49

7*(2^2+2^1+2^0)

addi a0, zero, 7
slli a1, a0, 2
add a2, zero, a1
slli a1, a0, 1
add a2, a2, a1
add a2, a2, a0