From: Jose E. Marchesi Date: Tue, 20 Feb 2024 11:03:43 +0000 (+0100) Subject: bpf: gas: add missing indcall-badoperand.* test files X-Git-Tag: gdb-15-branchpoint~940 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1efdade946d7dab958c4ecbf5feea9aba01e280;p=thirdparty%2Fbinutils-gdb.git bpf: gas: add missing indcall-badoperand.* test files This adds teh following files that were missing in the previous commit ecd16ae4e47118f66447641d93a6aa1334e550d4 testsuite/gas/bpf/indcall-badoperand.d testsuite/gas/bpf/indcall-badoperand.l testsuite/gas/bpf/indcall-badoperand.s --- diff --git a/gas/testsuite/gas/bpf/indcall-badoperand.d b/gas/testsuite/gas/bpf/indcall-badoperand.d new file mode 100644 index 00000000000..bf2e9e8e643 --- /dev/null +++ b/gas/testsuite/gas/bpf/indcall-badoperand.d @@ -0,0 +1,3 @@ +#as: -EL -mno-relax +#source: indcall-badoperand.s +#error_output: indcall-badoperand.l diff --git a/gas/testsuite/gas/bpf/indcall-badoperand.l b/gas/testsuite/gas/bpf/indcall-badoperand.l new file mode 100644 index 00000000000..d791435a2ac --- /dev/null +++ b/gas/testsuite/gas/bpf/indcall-badoperand.l @@ -0,0 +1,3 @@ +.*: Assembler messages: +.*:7: Error: unrecognized instruction `call %0' +.*:7: Error: expected register name, got '%0' diff --git a/gas/testsuite/gas/bpf/indcall-badoperand.s b/gas/testsuite/gas/bpf/indcall-badoperand.s new file mode 100644 index 00000000000..cf19c0a56b6 --- /dev/null +++ b/gas/testsuite/gas/bpf/indcall-badoperand.s @@ -0,0 +1,8 @@ + + .text + .align 4 +main: + + mov %r0, 1 + call %0 + exit