Skip to content

Commit

Permalink
target/riscv: reformat @sh format encoding for B-extension
Browse files Browse the repository at this point in the history
Signed-off-by: Kito Cheng <[email protected]>
Signed-off-by: Frank Chang <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Message-id: [email protected]
Signed-off-by: Alistair Francis <[email protected]>
  • Loading branch information
kito-cheng authored and alistair23 committed Jun 7, 2021
1 parent eee2d61 commit 0071820
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions target/riscv/insn32.decode
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
%rd 7:5
%sh5 20:5

%sh10 20:10
%sh7 20:7
%csr 20:12
%rm 12:3
%nf 29:3 !function=ex_plus_1
Expand Down Expand Up @@ -59,7 +59,7 @@
@u .................... ..... ....... &u imm=%imm_u %rd
@j .................... ..... ....... &j imm=%imm_j %rd

@sh ...... ...... ..... ... ..... ....... &shift shamt=%sh10 %rs1 %rd
@sh ...... ...... ..... ... ..... ....... &shift shamt=%sh7 %rs1 %rd
@csr ............ ..... ... ..... ....... %csr %rs1 %rd

@atom_ld ..... aq:1 rl:1 ..... ........ ..... ....... &atomic rs2=0 %rs1 %rd
Expand Down Expand Up @@ -125,9 +125,9 @@ sltiu ............ ..... 011 ..... 0010011 @i
xori ............ ..... 100 ..... 0010011 @i
ori ............ ..... 110 ..... 0010011 @i
andi ............ ..... 111 ..... 0010011 @i
slli 00.... ...... ..... 001 ..... 0010011 @sh
srli 00.... ...... ..... 101 ..... 0010011 @sh
srai 01.... ...... ..... 101 ..... 0010011 @sh
slli 00000. ...... ..... 001 ..... 0010011 @sh
srli 00000. ...... ..... 101 ..... 0010011 @sh
srai 01000. ...... ..... 101 ..... 0010011 @sh
add 0000000 ..... ..... 000 ..... 0110011 @r
sub 0100000 ..... ..... 000 ..... 0110011 @r
sll 0000000 ..... ..... 001 ..... 0110011 @r
Expand Down

0 comments on commit 0071820

Please sign in to comment.