RISC-V: Rewrite the csr testcases.
authorNelson Chu <nelson.chu@sifive.com>
Fri, 24 Dec 2021 07:10:38 +0000 (15:10 +0800)
committerNelson Chu <nelson.chu@sifive.com>
Fri, 24 Dec 2021 08:08:25 +0000 (16:08 +0800)
commitb6a08665ffb4a4b41e3761666c7c54655279f2ad
treebed2f3569a91833cbda75b587e21ee501f0bfad2
parenta63375ac337903d4394b2d88788353d06cf7a086
RISC-V: Rewrite the csr testcases.

Maskray (Fangrui Song) had suggested me before that we should combine
multiple testcases into one file as possible as we can.  So that we can
more easily understand what these test cases are testing, and easier to
maintain.  Therefore, this patch rewrites all csr testcases, to make them
more clean.

gas/
* testsuite/gas/riscv/csr-fail-nonexistent.d: Renamed from
priv-reg-fail-nonexistent testcase.
* testsuite/gas/riscv/csr-fail-nonexistent.: Likewise.
* testsuite/gas/riscv/csr-fail-nonexistent.s: Likewise.
* testsuite/gas/riscv/csr-insns-pseudo-noalias.d: Renamed from
priv-reg-pseudo testcase.
* testsuite/gas/riscv/csr-insns-pseudo.d: Likewise.
* testsuite/gas/riscv/csr-insns-pseudo.s: Likewise.
* testsuite/gas/riscv/csr-insns-read-only.d: Renamed from
priv-reg-fail-read-only-02 testcase.
* testsuite/gas/riscv/csr-insns-read-only.l: Likewise.
* testsuite/gas/riscv/csr-insns-read-only.s: Likewise.
* testsuite/gas/riscv/h-ext-32.d: Moved hypervisor csrs to csr.s.
* testsuite/gas/riscv/h-ext-32.s: Likewise.
* testsuite/gas/riscv/h-ext-64.d: Likewise.
* testsuite/gas/riscv/h-ext-64.s: Likewise.
* testsuite/gas/riscv/csr.s: Renamed from priv-reg.s, and then
added the hypervisor csrs.
* testsuite/gas/riscv/csr-version-1p9p1.d: The csr testcase when
the privileged spec is 1.9.1.  Also tested all invalid csr warnings
when -mcsr-check is enabled.
* testsuite/gas/riscv/csr-version-1p9p1.l: Likewise.
* testsuite/gas/riscv/csr-version-1p10.d: Likewise, but the
privileged spec is 1.10..
* testsuite/gas/riscv/csr-version-1p10.l: Likewise.
* testsuite/gas/riscv/csr-version-1p11.d: Likewise, but the
privileged spec is 1.11.
* testsuite/gas/riscv/csr-version-1p11.l: Likewise.
* testsuite/gas/riscv/csr-version-1p12.d: Likewise, but the
privileged spec is 1.12.
* testsuite/gas/riscv/csr-version-1p12.l: Likewise.
* testsuite/gas/riscv/priv-reg*: Removed or Renamed.
50 files changed:
gas/testsuite/gas/riscv/csr-fail-nonexistent.d [new file with mode: 0644]
gas/testsuite/gas/riscv/csr-fail-nonexistent.l [new file with mode: 0644]
gas/testsuite/gas/riscv/csr-fail-nonexistent.s [new file with mode: 0644]
gas/testsuite/gas/riscv/csr-insns-pseudo-noalias.d [new file with mode: 0644]
gas/testsuite/gas/riscv/csr-insns-pseudo.d [new file with mode: 0644]
gas/testsuite/gas/riscv/csr-insns-pseudo.s [new file with mode: 0644]
gas/testsuite/gas/riscv/csr-insns-read-only.d [new file with mode: 0644]
gas/testsuite/gas/riscv/csr-insns-read-only.l [new file with mode: 0644]
gas/testsuite/gas/riscv/csr-insns-read-only.s [new file with mode: 0644]
gas/testsuite/gas/riscv/csr-version-1p10.d [new file with mode: 0644]
gas/testsuite/gas/riscv/csr-version-1p10.l [new file with mode: 0644]
gas/testsuite/gas/riscv/csr-version-1p11.d [new file with mode: 0644]
gas/testsuite/gas/riscv/csr-version-1p11.l [new file with mode: 0644]
gas/testsuite/gas/riscv/csr-version-1p12.d [new file with mode: 0644]
gas/testsuite/gas/riscv/csr-version-1p12.l [new file with mode: 0644]
gas/testsuite/gas/riscv/csr-version-1p9p1.d [new file with mode: 0644]
gas/testsuite/gas/riscv/csr-version-1p9p1.l [new file with mode: 0644]
gas/testsuite/gas/riscv/csr.s [new file with mode: 0644]
gas/testsuite/gas/riscv/h-ext-32.d
gas/testsuite/gas/riscv/h-ext-32.s
gas/testsuite/gas/riscv/h-ext-64.d
gas/testsuite/gas/riscv/h-ext-64.s
gas/testsuite/gas/riscv/priv-reg-fail-fext.d [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-fext.l [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-nonexistent.d [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-nonexistent.l [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-nonexistent.s [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.d [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.l [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-read-only-01.s [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-read-only-02.d [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-read-only-02.l [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-read-only-02.s [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.d [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-rv32-only.l [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.d [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-version-1p10.l [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.d [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-version-1p11.l [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.d [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-zkr.d [deleted file]
gas/testsuite/gas/riscv/priv-reg-fail-zkr.l [deleted file]
gas/testsuite/gas/riscv/priv-reg-pseudo-noalias.d [deleted file]
gas/testsuite/gas/riscv/priv-reg-pseudo.d [deleted file]
gas/testsuite/gas/riscv/priv-reg-pseudo.s [deleted file]
gas/testsuite/gas/riscv/priv-reg-version-1p10.d [deleted file]
gas/testsuite/gas/riscv/priv-reg-version-1p11.d [deleted file]
gas/testsuite/gas/riscv/priv-reg-version-1p9p1.d [deleted file]
gas/testsuite/gas/riscv/priv-reg.s [deleted file]