RISC-V: test for expected / no unexpected symbols
authorJan Beulich <jbeulich@suse.com>
Tue, 25 Apr 2023 09:18:49 +0000 (11:18 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 25 Apr 2023 09:18:49 +0000 (11:18 +0200)
commit42dabba6578e4b19037512d052fdc711c1349d6f
tree93285b131300e6c478017c96b3a0a4856c7159cc
parentb33e94cfa4777b68719794ad1c1ef630e3dca3c2
RISC-V: test for expected / no unexpected symbols

Both the temporary workaround for PR/gas 29940 and the existing special
casing of GPRs in my_getSmallExpression() aren't really tested anywhere
(i.e. with the workarounds remove testing would still succeed). Nor is
there any test for uses of symbols with names matching GPRs, where such
is permitted. Before altering how this is to be dealt with, install two
testcases covering the expected behavior. (For now this includes only
known affected insns; re-ordering of entries in riscv_opcodes[] could,
however, yield more of them.)
gas/testsuite/gas/riscv/reg-syms-C.d [new file with mode: 0644]
gas/testsuite/gas/riscv/reg-syms.d [new file with mode: 0644]
gas/testsuite/gas/riscv/reg-syms.s [new file with mode: 0644]