Skip to content

Commit 563e930

Browse files
authored
Separate Zcf and Zcd extensions from Zce (#539)
* Separate Zcf and Zcd extensions from Zce Signed-off-by: Albert Yosher <[email protected]> * Restore per-instruction dependencies of Zcf/Zcd Signed-off-by: Albert Yosher <[email protected]> --------- Signed-off-by: Albert Yosher <[email protected]>
1 parent 694d09d commit 563e930

File tree

12 files changed

+33
-15
lines changed

12 files changed

+33
-15
lines changed

arch/ext/Zcd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ versions:
3939
allOf:
4040
- anyOf:
4141
- { name: Zca, version: "= 1.0.0" }
42-
- { name: C, version: "= 1.0.0" }
42+
- { name: C, version: "~> 2.0.0" }
4343
- { name: D, version: "~> 2.2.0" }

arch/ext/Zce.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,7 @@ versions:
7676
# - [Zcb, "1.0.0"]
7777
# - [Zcmp, "1.0.0"]
7878
# - [Zcmt, "1.0.0"]
79+
conflicts:
80+
anyOf:
81+
- allOf: [C, D]
82+
- Zcd

arch/ext/Zcf.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kind: extension
55
name: Zcf
66
long_name: Compressed instructions for single precision floating point
77
description: |
8-
Zcf is the existing set of compressed single precision floating point loads and stores:
8+
Zcf is the existing set of compressed single precision floating point loads and stores (RV32 only):
99
`c.flw`, `c.flwsp`, `c.fsw`, `c.fswsp`.
1010
1111
type: unprivileged
@@ -35,4 +35,9 @@ versions:
3535
- name: Graeme Smecher
3636
- name: Nicolas Brunie
3737
- name: Jiawei
38-
requires: F
38+
requires:
39+
allOf:
40+
- anyOf:
41+
- { name: Zca, version: "= 1.0.0" }
42+
- { name: C, version: "~> 2.0.0" }
43+
- { name: F, version: "~> 2.2.0" }

arch/ext/Zcmp.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ versions:
8888
- name: Graeme Smecher
8989
- name: Nicolas Brunie
9090
- name: Jiawei
91+
requires: { name: Zca, version: ">= 1.0.0" }
9192
conflicts:
9293
anyOf:
9394
- allOf: [C, D]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

arch/inst/C/c.flw.yaml renamed to arch/inst/Zcf/c.flw.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ description: |
1010
to the base address in register rs1.
1111
It expands to `flw` `rd, offset(rs1)`.
1212
definedBy:
13-
allOf:
14-
- C
15-
- F
13+
anyOf:
14+
- allOf:
15+
- C
16+
- F
17+
- Zcf
1618
assembly: xd, imm(xs1)
1719
base: 32
1820
encoding:

arch/inst/C/c.flwsp.yaml renamed to arch/inst/Zcf/c.flwsp.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ description: |
1010
to the stack pointer, x2.
1111
It expands to `flw` `rd, offset(x2)`.
1212
definedBy:
13-
allOf:
14-
- C
15-
- F
13+
anyOf:
14+
- allOf:
15+
- C
16+
- F
17+
- Zcf
1618
assembly: fd, imm(sp)
1719
base: 32
1820
encoding:

0 commit comments

Comments
 (0)