Skip to content

Commit 1b5a0a6

Browse files
authored
fix(data): AMO instructions need parentheses around address register (#802)
Some AMO instructions have parentheses (arch/inst/Zaamo/amoadd.d.yaml): ``` assembly: xd, xs2, (xs1) ``` Some don't (arch/inst/Zabha/amoadd.b.yaml): ``` assembly: xd, xs2, xs1 ``` They all should, so add them. Also, some instructions use incorrect register name "xrs1". Correct to "xs1".
1 parent 15a4aac commit 1b5a0a6

40 files changed

+40
-40
lines changed

arch/inst/Zaamo/amoadd.w.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description: |
1212
* Add the least-significant word of register _rs2_ to the loaded value
1313
* Write the sum to the address in _rs1_
1414
definedBy: Zaamo
15-
assembly: xd, xs2, (xrs1)
15+
assembly: xd, xs2, (xs1)
1616
encoding:
1717
match: 00000------------010-----0101111
1818
variables:

arch/inst/Zaamo/amoand.d.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ description: |
1313
* Write the result to the address in _rs1_
1414
definedBy: Zaamo
1515
base: 64
16-
assembly: xd, xs2, (xrs1)
16+
assembly: xd, xs2, (xs1)
1717
encoding:
1818
match: 01100------------011-----0101111
1919
variables:

arch/inst/Zaamo/amoand.w.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description: |
1212
* AND the least-significant word of register _rs2_ to the loaded value
1313
* Write the result to the address in _rs1_
1414
definedBy: Zaamo
15-
assembly: xd, xs2, (xrs1)
15+
assembly: xd, xs2, (xs1)
1616
encoding:
1717
match: 01100------------010-----0101111
1818
variables:

arch/inst/Zaamo/amomax.d.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ description: |
1313
* Write the maximum to the address in _rs1_
1414
definedBy: Zaamo
1515
base: 64
16-
assembly: xd, xs2, (xrs1)
16+
assembly: xd, xs2, (xs1)
1717
encoding:
1818
match: 10100------------011-----0101111
1919
variables:

arch/inst/Zaamo/amomax.w.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description: |
1212
* Signed compare the least-significant word of register _rs2_ to the loaded value, and select the maximum value
1313
* Write the maximum to the address in _rs1_
1414
definedBy: Zaamo
15-
assembly: xd, xs2, (xrs1)
15+
assembly: xd, xs2, (xs1)
1616
encoding:
1717
match: 10100------------010-----0101111
1818
variables:

arch/inst/Zaamo/amomaxu.d.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ description: |
1313
* Write the maximum to the address in _rs1_
1414
definedBy: Zaamo
1515
base: 64
16-
assembly: xd, xs2, (xrs1)
16+
assembly: xd, xs2, (xs1)
1717
encoding:
1818
match: 11100------------011-----0101111
1919
variables:

arch/inst/Zaamo/amomaxu.w.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description: |
1212
* Unsigned compare the least-significant word of register _rs2_ to the loaded value, and select the maximum value
1313
* Write the maximum to the address in _rs1_
1414
definedBy: Zaamo
15-
assembly: xd, xs2, (xrs1)
15+
assembly: xd, xs2, (xs1)
1616
encoding:
1717
match: 11100------------010-----0101111
1818
variables:

arch/inst/Zaamo/amomin.d.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ description: |
1313
* Write the minimum to the address in _rs1_
1414
definedBy: Zaamo
1515
base: 64
16-
assembly: xd, xs2, (xrs1)
16+
assembly: xd, xs2, (xs1)
1717
encoding:
1818
match: 10000------------011-----0101111
1919
variables:

arch/inst/Zaamo/amomin.w.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description: |
1212
* Signed compare the least-significant word of register _rs2_ to the loaded value, and select the minimum value
1313
* Write the result to the address in _rs1_
1414
definedBy: Zaamo
15-
assembly: xd, xs2, (xrs1)
15+
assembly: xd, xs2, (xs1)
1616
encoding:
1717
match: 10000------------010-----0101111
1818
variables:

arch/inst/Zaamo/amominu.d.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ description: |
1313
* Write the minimum to the address in _rs1_
1414
definedBy: Zaamo
1515
base: 64
16-
assembly: xd, xs2, (xrs1)
16+
assembly: xd, xs2, (xs1)
1717
encoding:
1818
match: 11000------------011-----0101111
1919
variables:

0 commit comments

Comments
 (0)