Skip to content

Commit

Permalink
Merge pull request #265 from kbroch-rivosinc/dev/kbroch/c-lui-yaml-sc…
Browse files Browse the repository at this point in the history
…hema-fix

fix duplicate `not` keyword
  • Loading branch information
dhower-qc authored Nov 14, 2024
2 parents 0fb90ac + 0a71dba commit 3d1039c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions arch/inst/C/c.lui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
c.lui:
long_name: Load the non-zero 6-bit immediate field into bits 17–12 of the destination register
description: |
C.LUI loads the non-zero 6-bit immediate field into bits 17–12 of the destination register, clears the bottom 12 bits, and sign-extends bit 17 into all higher bits of the destination.
C.LUI expands into `lui rd, imm`.
C.LUI is only valid when rd≠x0 and rd≠x2, and when the immediate is not equal to zero.
C.LUI loads the non-zero 6-bit immediate field into bits 17–12 of the destination register, clears the bottom 12 bits, and sign-extends bit 17 into all higher bits of the destination.
C.LUI expands into `lui rd, imm`.
C.LUI is only valid when rd≠x0 and rd≠x2, and when the immediate is not equal to zero.
The code points with imm=0 are reserved; the remaining code points with rd=x0 are HINTs; and the remaining code points with rd=x2 correspond to the C.ADDI16SP instruction
definedBy:
anyOf:
Expand All @@ -20,8 +20,7 @@ c.lui:
left_shift: 12
- name: rd
location: 11-7
not: 0
not: 2
not: [0, 2]
access:
s: always
u: always
Expand All @@ -33,4 +32,3 @@ c.lui:
}
X[rd] = imm;
2 changes: 1 addition & 1 deletion lib/arch_obj_models/instruction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def pretty_name
elsif excludes.size == 1
"#{name} != #{excludes[0]}"
else
"#{name} != {#{excludes[0].join(',')}}"
"#{name} != {#{excludes.join(',')}}"
end
end

Expand Down

0 comments on commit 3d1039c

Please sign in to comment.