RISC-V: Scalar crypto instruction and entropy source CSR testcases.
authorjiawei <jiawei@iscas.ac.cn>
Mon, 15 Nov 2021 03:03:43 +0000 (11:03 +0800)
committerNelson Chu <nelson.chu@sifive.com>
Tue, 16 Nov 2021 03:48:23 +0000 (11:48 +0800)
commitfc5c1c28b3cf059f6c13372d9cf152f115ca745e
tree6e602e684705cb3788cda24a80ec7ea15bf27d20
parent3d1cafa0c60f859940262af7852b21a42dd78ba1
RISC-V: Scalar crypto instruction and entropy source CSR testcases.

Add testcases for Scalar Crypto extension, with total testcase contain all
instructions in k-ext/k-ext-64 and sub-extension testcase for zbk* zk*. Also
add testcase for new CSR name 'seed' which is the Entropy Source in zkr.

In fact these whole testcases can be combined into one file, after we have
supported the .option arch +-= directives.

gas/
* testsuite/gas/riscv/k-ext-64.d: New testcase for crypto instructions.
* testsuite/gas/riscv/k-ext-64.s: Likewise.
* testsuite/gas/riscv/k-ext.d: Likewise.
* testsuite/gas/riscv/k-ext.s: Likewise.
* testsuite/gas/riscv/zbkb-32.d: Likewise.
* testsuite/gas/riscv/zbkb-32.s: Likewise.
* testsuite/gas/riscv/zbkb-64.d: Likewise.
* testsuite/gas/riscv/zbkb-64.s: Likewise.
* testsuite/gas/riscv/zbkc-32.d: Likewise.
* testsuite/gas/riscv/zbkc-64.d: Likewise.
* testsuite/gas/riscv/zbkc.s: Likewise.
* testsuite/gas/riscv/zbkx-32.d: Likewise.
* testsuite/gas/riscv/zbkx-64.d: Likewise.
* testsuite/gas/riscv/zbkx.s: Likewise.
* testsuite/gas/riscv/zknd-32.d: Likewise.
* testsuite/gas/riscv/zknd-32.s: Likewise.
* testsuite/gas/riscv/zknd-64.d: Likewise.
* testsuite/gas/riscv/zknd-64.s: Likewise.
* testsuite/gas/riscv/zkne-32.d: Likewise.
* testsuite/gas/riscv/zkne-32.s: Likewise.
* testsuite/gas/riscv/zkne-64.d: Likewise.
* testsuite/gas/riscv/zkne-64.s: Likewise.
* testsuite/gas/riscv/zknh-32.d: Likewise.
* testsuite/gas/riscv/zknh-32.s: Likewise.
* testsuite/gas/riscv/zknh-64.d: Likewise.
* testsuite/gas/riscv/zknh-64.s: Likewise.
* testsuite/gas/riscv/zksed-32.d: Likewise.
* testsuite/gas/riscv/zksed-64.d: Likewise.
* testsuite/gas/riscv/zksed.s: Likewise.
* testsuite/gas/riscv/zksh-32.d: Likewise.
* testsuite/gas/riscv/zksh-64.d: Likewise.
* testsuite/gas/riscv/zksh.s: Likewise.
* testsuite/gas/riscv/priv-reg-fail-zkr.d: New testcase for zkr
csr check.
* testsuite/gas/riscv/priv-reg-fail-zkr.l: Likewise.
* testsuite/gas/riscv/priv-reg-fail-version-1p10.d: Updated march to
rv32if_zkr.
* testsuite/gas/riscv/priv-reg-fail-version-1p11.d: Likewise.
* testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d: Likewise.
* testsuite/gas/riscv/priv-reg-version-1p10.d: Added Crypto seed csr.
* testsuite/gas/riscv/priv-reg-version-1p11.d: Likewise.
* testsuite/gas/riscv/priv-reg-version-1p9p1.d: Likewise.
* testsuite/gas/riscv/priv-reg.s: Likewise.
41 files changed:
gas/testsuite/gas/riscv/k-ext-64.d [new file with mode: 0644]
gas/testsuite/gas/riscv/k-ext-64.s [new file with mode: 0644]
gas/testsuite/gas/riscv/k-ext.d [new file with mode: 0644]
gas/testsuite/gas/riscv/k-ext.s [new file with mode: 0644]
gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.d
gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.d
gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d
gas/testsuite/gas/riscv/priv-reg-fail-zkr.d [new file with mode: 0644]
gas/testsuite/gas/riscv/priv-reg-fail-zkr.l [new file with mode: 0644]
gas/testsuite/gas/riscv/priv-reg-version-1p10.d
gas/testsuite/gas/riscv/priv-reg-version-1p11.d
gas/testsuite/gas/riscv/priv-reg-version-1p9p1.d
gas/testsuite/gas/riscv/priv-reg.s
gas/testsuite/gas/riscv/zbkb-32.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zbkb-32.s [new file with mode: 0644]
gas/testsuite/gas/riscv/zbkb-64.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zbkb-64.s [new file with mode: 0644]
gas/testsuite/gas/riscv/zbkc-32.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zbkc-64.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zbkc.s [new file with mode: 0644]
gas/testsuite/gas/riscv/zbkx-32.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zbkx-64.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zbkx.s [new file with mode: 0644]
gas/testsuite/gas/riscv/zknd-32.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zknd-32.s [new file with mode: 0644]
gas/testsuite/gas/riscv/zknd-64.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zknd-64.s [new file with mode: 0644]
gas/testsuite/gas/riscv/zkne-32.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zkne-32.s [new file with mode: 0644]
gas/testsuite/gas/riscv/zkne-64.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zkne-64.s [new file with mode: 0644]
gas/testsuite/gas/riscv/zknh-32.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zknh-32.s [new file with mode: 0644]
gas/testsuite/gas/riscv/zknh-64.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zknh-64.s [new file with mode: 0644]
gas/testsuite/gas/riscv/zksed-32.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zksed-64.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zksed.s [new file with mode: 0644]
gas/testsuite/gas/riscv/zksh-32.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zksh-64.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zksh.s [new file with mode: 0644]