Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix definedBy on some instructions #340

Merged
merged 7 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions arch/ext/Zhinx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# yaml-language-server: $schema=../../schemas/ext_schema.json

$schema: "ext_schema.json#"
kind: extension
name: Zhinx
long_name: Half-precision floating-point instructions using integer registers
description: |
The Zhinx extension provides analogous half-precision floating-point instructions. The Zhinx extension
depends upon the Zfinx extension.
The Zhinx extension adds all of the instructions that the Zfh extension adds, except for the transfer
instructions FLH, FSH, FMV.H.X, and FMV.X.H.
The Zhinx variants of these Zfh-extension instructions have the same semantics, except that whenever
such an instruction would have accessed an f register, it instead accesses the x register with the same
number.

type: unprivileged
versions:
- version: "1.0.0"
state: ratified
ratification_date: 2021-11
2 changes: 1 addition & 1 deletion arch/inst/D/fcvtmod.w.d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [D, Zfa]
allOf: [D, Zfa]
assembly: xd, xs1
encoding:
match: 110000101000-----001-----1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/D/fleq.d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [D, Zfa]
allOf: [D, Zfa]
assembly: xd, xs1, xs2
encoding:
match: 1010001----------100-----1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/D/fli.d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [D, Zfa]
allOf: [D, Zfa]
assembly: xd, xs1
encoding:
match: 111100100001-----000-----1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/D/fltq.d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [D, Zfa]
allOf: [D, Zfa]
assembly: xd, xs1, xs2
encoding:
match: 1010001----------101-----1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/D/fmaxm.d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [D, Zfa]
allOf: [D, Zfa]
assembly: xd, xs1, xs2
encoding:
match: 0010101----------011-----1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/D/fminm.d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [D, Zfa]
allOf: [D, Zfa]
assembly: xd, xs1, xs2
encoding:
match: 0010101----------010-----1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/D/fmvh.x.d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [D, Zfa]
allOf: [D, Zfa]
assembly: xd, xs1
encoding:
match: 111000100001-----000-----1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/D/fmvp.d.x.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [D, Zfa]
allOf: [D, Zfa]
assembly: xd, xs1, xs2
encoding:
match: 1011001----------000-----1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/D/fround.d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [D, Zfa]
allOf: [D, Zfa]
assembly: xd, xs1, rm
encoding:
match: 010000100100-------------1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/D/froundnx.d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [D, Zfa]
allOf: [D, Zfa]
assembly: xd, xs1, rm
encoding:
match: 010000100101-------------1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Q/fcvt.h.q.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [Q, Zfh]
allOf: [Q, Zfh]
assembly: xd, qs1, rm
encoding:
match: 010001000011-------------1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Q/fcvt.q.h.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [Q, Zfh]
allOf: [Q, Zfh]
assembly: hd, qs1, rm
encoding:
match: 010001100010-------------1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Q/fleq.q.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [Q, Zfa]
allOf: [Q, Zfa]
assembly: xd, qs1, qs2
encoding:
match: 1010011----------100-----1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Q/fli.q.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [Q, Zfa]
allOf: [Q, Zfa]
assembly: fd, qs1
encoding:
match: 111101100001-----000-----1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Q/fltq.q.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [Q, Zfa]
allOf: [Q, Zfa]
assembly: qd, qs1, qs2
encoding:
match: 1010011----------101-----1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Q/fmaxm.q.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [Q, Zfa]
allOf: [Q, Zfa]
assembly: qd, qs1, qs2
encoding:
match: 0010111----------011-----1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Q/fminm.q.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [Q, Zfa]
allOf: [Q, Zfa]
assembly: qd, qs1, qs2
encoding:
match: 0010111----------010-----1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Q/fmvh.x.q.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [Q, Zfa]
allOf: [Q, Zfa]
base: 64
assembly: xd, qs1
encoding:
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Q/fmvp.q.x.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [Q, Zfa]
allOf: [Q, Zfa]
base: 64
assembly: qd, xs1, xs2
encoding:
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Q/fround.q.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [Q, Zfa]
allOf: [Q, Zfa]
assembly: qd, qs1, rm
encoding:
match: 010001100100-------------1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Q/froundnx.q.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [Q, Zfa]
allOf: [Q, Zfa]
assembly: qd, qs1, rm
encoding:
match: 010001100101-------------1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Zfh/fcvt.d.h.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [D, Zfh]
allOf: [D, Zfh]
assembly: xd, xs1, rm
encoding:
match: 010000100010-------------1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Zfh/fcvt.h.d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [D, Zfh]
allOf: [D, Zfh]
assembly: xd, xs1, rm
encoding:
match: 010001000001-------------1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Zfh/fcvt.h.s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: instruction
name: fcvt.h.s
long_name: Convert half-precision float to a single-precision float
definedBy:
anyOf: [Zfh, Zfhmin]
allOf: [Zfh, Zfhmin]
assembly: fd, xs1
description: |
Converts a half-precision number in floating-point register _fs1_ into a single-precision floating-point number in
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Zfh/fcvt.s.h.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: instruction
name: fcvt.s.h
long_name: Convert single-precision float to a half-precision float
definedBy:
anyOf: [Zfh, Zfhmin]
allOf: [Zfh, Zfhmin]
assembly: fd, xs1
description: |
Converts a single-precision number in floating-point register _fs1_ into a half-precision floating-point number in
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Zfh/fleq.h.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [Zfa, Zfh]
ThinkOpenly marked this conversation as resolved.
Show resolved Hide resolved
allOf: [Zfa, Zfh]
assembly: xd, xs1, xs2
encoding:
match: 1010010----------100-----1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Zfh/flh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: |
`flh` is only guaranteed to execute atomically if the effective address is naturally aligned.

definedBy:
anyOf: [Zfh, Zfhmin]
anyOf: [Zfh, Zfhmin, Zhinx]
assembly: fd, imm(xs1)
encoding:
match: -----------------001-----0000111
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Zfh/fli.h.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [Zfa, Zfh]
allOf: [Zfa, Zfh]
assembly: xd, xs1
encoding:
match: 111101000001-----000-----1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Zfh/fltq.h.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [Zfa, Zfh]
allOf: [Zfa, Zfh]
assembly: xd, xs1, xs2
encoding:
match: 1010010----------101-----1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Zfh/fmaxm.h.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [Zfa, Zfh]
allOf: [Zfa, Zfh]
assembly: xd, xs1, xs2
encoding:
match: 0010110----------011-----1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Zfh/fminm.h.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [Zfa, Zfh]
allOf: [Zfa, Zfh]
assembly: xd, xs1, xs2
encoding:
match: 0010110----------010-----1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Zfh/fmv.x.h.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: instruction
name: fmv.x.h
long_name: Move half-precision value from floating-point to integer register
definedBy:
anyOf: [Zfh, Zfhmin]
anyOf: [Zfh, Zfhmin, Zhinx]
assembly: rd, fs1
description: |
Moves the half-precision value in floating-point register rs1 represented in IEEE 754-2008
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Zfh/fround.h.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [Zfa, Zfh]
allOf: [Zfa, Zfh]
assembly: xd, xs1, rm
encoding:
match: 010001000100-------------1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Zfh/froundnx.h.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_name: No synopsis available.
description: |
No description available.
definedBy:
anyOf: [Zfa, Zfh]
allOf: [Zfa, Zfh]
assembly: xd, xs1, rm
encoding:
match: 010001000101-------------1010011
Expand Down
2 changes: 1 addition & 1 deletion arch/inst/Zfh/fsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ description: |
`fsh` is only guaranteed to execute atomically if the effective address is naturally aligned.

definedBy:
anyOf: [Zfh, Zfhmin]
anyOf: [Zfh, Zfhmin, Zhinx]
assembly: fs2, imm(xs1)
encoding:
match: -----------------001-----0100111
Expand Down
Loading