Skip to content

Commit

Permalink
Update 16.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Shao-Ce Sun authored Aug 6, 2021
1 parent 1cb41ed commit 5d53011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 16/16.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#### 汇编

```sh
echo "vle8.v v0, (a0)" | ~/pro/csky/csky-llvm/build/bin/llvm-mc -triple=riscv64 --mattr=+experimental-v --show-encoding
echo "vle8.v v0, (a0)" | $RISCV/llvm/bin/llvm-mc -triple=riscv64 --mattr=+experimental-v --show-encoding
```
结果(注意此处的编码是小端序的,转换为二进制时,即31~0的顺序排列的话,应为0x02 0x05 0x00 0x07):
```sh
Expand All @@ -18,7 +18,7 @@ echo "vle8.v v0, (a0)" | ~/pro/csky/csky-llvm/build/bin/llvm-mc -triple=riscv64
#### 反汇编

```sh
echo "0x07,0x00,0x05,0x02" | ~/pro/csky/csky-llvm/build/bin/llvm-mc -triple=riscv64 --mattr=+experimental-v --disassemble
echo "0x07,0x00,0x05,0x02" | $RISCV/llvm/bin/llvm-mc -triple=riscv64 --mattr=+experimental-v --disassemble
```
结果
```sh
Expand Down

0 comments on commit 5d53011

Please sign in to comment.