Skip to content

Commit

Permalink
[GSOC] added configs for Zvbc insn
Browse files Browse the repository at this point in the history
  • Loading branch information
SyedHassanUlHaq committed Aug 19, 2024
1 parent 572384b commit e91d776
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ CONFIGS = configs/

SPIKE = spike
PATCHER_SPIKE = build/pspike
MARCH = rv${XLEN}gcv_zvbb_zvkg
MARCH = rv${XLEN}gcv_zvbb_zvbc_zvkg
MABI = lp64d

ifeq ($(XLEN), 32)
Expand Down
22 changes: 22 additions & 0 deletions configs/vclmul.vv.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name = "vclmul.vv"
format = "vd,vs2,vs1,vm"

[tests]
base = [
[0x0, 0x0],
[0x1, 0x2],
[0x3, 0xf]
]

sew64 = [
["0xffffffffffff8000", "0x0000000000000000"],
["0xffffffff80000000", "0x0000000000000000"],
["0xffffffff80000000", "0xffffffffffff8000"],
["0x0000000000007fff", "0x0000000000000000"],
["0x000000007fffffff", "0x0000000000007fff"],
["0xffffffff80000000", "0x0000000000007fff"],
["0x000000007fffffff", "0xffffffffffff8000"],
["0xffffffffffffffff", "0x0000000000000001"],
["0xffffffffffffffff", "0x0000000000000000"],
["0xffffffffffffffff", "0xffffffffffffffff"]
]
22 changes: 22 additions & 0 deletions configs/vclmul.vx.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name = "vclmul.vx"
format = "vd,vs2,rs1,vm"

[tests]
base = [
[0x0, 0x0],
[0x1, 0x2],
[0x3, 0xf]
]
sew64 = [
["0xffffffffffff8000", "0x0000000000000000"],
["0xffffffff80000000", "0x0000000000000000"],
["0xffffffff80000000", "0xffffffffffff8000"],
["0x0000000000007fff", "0x0000000000000000"],
["0x000000007fffffff", "0x0000000000007fff"],
["0xffffffff80000000", "0x0000000000007fff"],
["0x000000007fffffff", "0xffffffffffff8000"],
["0xffffffffffffffff", "0x0000000000000001"],
["0xffffffffffffffff", "0x0000000000000000"],
["0xffffffffffffffff", "0xffffffffffffffff"]
]

21 changes: 21 additions & 0 deletions configs/vclmulh.vv.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name = "vclmulh.vv"
format = "vd,vs2,vs1,vm"

[tests]
base = [
[0x0, 0x0],
[0x1, 0x2],
[0x3, 0xf]
]
sew64 = [
["0xffffffffffff8000", "0x0000000000000000"],
["0xffffffff80000000", "0x0000000000000000"],
["0xffffffff80000000", "0xffffffffffff8000"],
["0x0000000000007fff", "0x0000000000000000"],
["0x000000007fffffff", "0x0000000000007fff"],
["0xffffffff80000000", "0x0000000000007fff"],
["0x000000007fffffff", "0xffffffffffff8000"],
["0xffffffffffffffff", "0x0000000000000001"],
["0xffffffffffffffff", "0x0000000000000000"],
["0xffffffffffffffff", "0xffffffffffffffff"]
]
21 changes: 21 additions & 0 deletions configs/vclmulh.vx.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name = "vclmulh.vx"
format = "vd,vs2,rs1,vm"

[tests]
base = [
[0x0, 0x0],
[0x1, 0x2],
[0x3, 0xf]
]
sew64 = [
["0xffffffffffff8000", "0x0000000000000000"],
["0xffffffff80000000", "0x0000000000000000"],
["0xffffffff80000000", "0xffffffffffff8000"],
["0x0000000000007fff", "0x0000000000000000"],
["0x000000007fffffff", "0x0000000000007fff"],
["0xffffffff80000000", "0x0000000000007fff"],
["0x000000007fffffff", "0xffffffffffff8000"],
["0xffffffffffffffff", "0x0000000000000001"],
["0xffffffffffffffff", "0x0000000000000000"],
["0xffffffffffffffff", "0xffffffffffffffff"]
]

0 comments on commit e91d776

Please sign in to comment.