Skip to content

Commit 3131c57

Browse files
authored
fix(data): correct f* assembly operand names and more (#822)
- Correct operand and register names to be correct name/type - Correct field names - Add missing rounding mode in a places - Similar changes in documentation and IDL - Change `fctmod.w.d` to require `rtz` rounding mode be specified to match the spec - Correct implementation of load and store conditionals (although some are still missing)
1 parent 0f4d458 commit 3131c57

File tree

166 files changed

+1121
-1135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+1121
-1135
lines changed

arch/inst/D/fadd.d.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ description:
1111
`fadd.d` is analogous to `fadd.s` and performs double-precision floating-point addition between
1212
`xs1` and `xs2` and writes the final result to `xd`.
1313
definedBy: D
14-
assembly: xd, xs1, xs2, rm
14+
assembly: fd, fs1, fs2, rm
1515
encoding:
1616
match: 0000001------------------1010011
1717
variables:
18-
- name: rs2
18+
- name: fs2
1919
location: 24-20
20-
- name: rs1
20+
- name: fs1
2121
location: 19-15
2222
- name: rm
2323
location: 14-12
24-
- name: rd
24+
- name: fd
2525
location: 11-7
2626
access:
2727
s: always

arch/inst/D/fclass.d.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ long_name: No synopsis available
77
description: |
88
No description available.
99
definedBy: D
10-
assembly: xd, xs1
10+
assembly: xd, fs1
1111
encoding:
1212
match: 111000100000-----001-----1010011
1313
variables:
14-
- name: rs1
14+
- name: fs1
1515
location: 19-15
16-
- name: rd
16+
- name: xd
1717
location: 11-7
1818
access:
1919
s: always

arch/inst/D/fcvt.d.l.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ description:
1111
`fcvt.d.l` converts a 64-bit signed integer, in integer register `xs1` into a double-precision
1212
floating-point number in floating-point register `fd`.
1313
definedBy: D
14-
assembly: xd, xs1, rm
14+
assembly: fd, xs1, rm
1515
encoding:
1616
match: 110100100010-------------1010011
1717
variables:
18-
- name: rs1
18+
- name: xs1
1919
location: 19-15
2020
- name: rm
2121
location: 14-12
22-
- name: rd
22+
- name: fd
2323
location: 11-7
2424
access:
2525
s: always

arch/inst/D/fcvt.d.lu.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ description:
1111
`fcvt.d.lu` converts to or from a 64-bit unsigned integer, `xs1` into a double-precision
1212
floating-point number in floating-point register `fd`.
1313
definedBy: D
14-
assembly: xd, xs1, rm
14+
assembly: fd, xs1, rm
1515
encoding:
1616
match: 110100100011-------------1010011
1717
variables:
18-
- name: rs1
18+
- name: xs1
1919
location: 19-15
2020
- name: rm
2121
location: 14-12
22-
- name: rd
22+
- name: fd
2323
location: 11-7
2424
access:
2525
s: always

arch/inst/D/fcvt.d.s.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ description:
1313
encodes the datatype of the source, and the `fmt` field encodes the datatype of the destination.
1414
`fcvt.d.s` will never round.
1515
definedBy: D
16-
assembly: xd, xs1, rm
16+
assembly: fd, fs1, rm
1717
encoding:
1818
match: 010000100000-------------1010011
1919
variables:
20-
- name: rs1
20+
- name: fs1
2121
location: 19-15
2222
- name: rm
2323
location: 14-12
24-
- name: rd
24+
- name: fd
2525
location: 11-7
2626
access:
2727
s: always

arch/inst/D/fcvt.d.w.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ description:
1212
floating-point number in floating-point register `fd`.
1313
Note `fcvt.d.w` always produces an exact result and is unaffected by rounding mode.
1414
definedBy: D
15-
assembly: xd, xs1, rm
15+
assembly: fd, xs1, rm
1616
encoding:
1717
match: 110100100000-------------1010011
1818
variables:
19-
- name: rs1
19+
- name: xs1
2020
location: 19-15
2121
- name: rm
2222
location: 14-12
23-
- name: rd
23+
- name: fd
2424
location: 11-7
2525
access:
2626
s: always

arch/inst/D/fcvt.d.wu.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ description:
1212
floating-point number in floating-point register `fd`.
1313
Note `fcvt.d.wu` always produces an exact result and is unaffected by rounding mode.
1414
definedBy: D
15-
assembly: xd, xs1, rm
15+
assembly: fd, xs1, rm
1616
encoding:
1717
match: 110100100001-------------1010011
1818
variables:
19-
- name: rs1
19+
- name: xs1
2020
location: 19-15
2121
- name: rm
2222
location: 14-12
23-
- name: rd
23+
- name: fd
2424
location: 11-7
2525
access:
2626
s: always

arch/inst/D/fcvt.l.d.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ description:
1111
`fcvt.l.d` converts a double-precision floating-point number in floating-point register `fs1`
1212
to a signed 64-bit integer, in integer register `xd`.
1313
definedBy: D
14-
assembly: xd, xs1, rm
14+
assembly: xd, fs1, rm
1515
encoding:
1616
match: 110000100010-------------1010011
1717
variables:
18-
- name: rs1
18+
- name: fs1
1919
location: 19-15
2020
- name: rm
2121
location: 14-12
22-
- name: rd
22+
- name: xd
2323
location: 11-7
2424
access:
2525
s: always

arch/inst/D/fcvt.lu.d.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ description:
1111
`fcvt.lu.d` converts a double-precision floating-point number in floating-point register `xs1`
1212
to an unsigned 64-bit integer, in integer register `xd`.
1313
definedBy: D
14-
assembly: xd, xs1, rm
14+
assembly: xd, fs1, rm
1515
encoding:
1616
match: 110000100011-------------1010011
1717
variables:
18-
- name: rs1
18+
- name: fs1
1919
location: 19-15
2020
- name: rm
2121
location: 14-12
22-
- name: rd
22+
- name: xd
2323
location: 11-7
2424
access:
2525
s: always

arch/inst/D/fcvt.s.d.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ description:
1313
registers. The `rs2` field encodes the datatype of the source, and the `fmt` field encodes the datatype
1414
of the destination. `fcvt.s.d` rounds according to the RM field
1515
definedBy: D
16-
assembly: xd, xs1, rm
16+
assembly: fd, fs1, rm
1717
encoding:
1818
match: 010000000001-------------1010011
1919
variables:
20-
- name: rs1
20+
- name: fs1
2121
location: 19-15
2222
- name: rm
2323
location: 14-12
24-
- name: rd
24+
- name: fd
2525
location: 11-7
2626
access:
2727
s: always

0 commit comments

Comments
 (0)