aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose E. Marchesi <jose.marchesi@oracle.com>2024-02-20 12:03:43 +0100
committerJose E. Marchesi <jose.marchesi@oracle.com>2024-02-20 12:04:49 +0100
commitf1efdade946d7dab958c4ecbf5feea9aba01e280 (patch)
tree316bb557c15a12074048a0f41f2cd91d16db57b2
parenta62320ed0818decde5f3265ebc508756f517d6f9 (diff)
downloadgdb-f1efdade946d7dab958c4ecbf5feea9aba01e280.zip
gdb-f1efdade946d7dab958c4ecbf5feea9aba01e280.tar.gz
gdb-f1efdade946d7dab958c4ecbf5feea9aba01e280.tar.bz2
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
-rw-r--r--gas/testsuite/gas/bpf/indcall-badoperand.d3
-rw-r--r--gas/testsuite/gas/bpf/indcall-badoperand.l3
-rw-r--r--gas/testsuite/gas/bpf/indcall-badoperand.s8
3 files changed, 14 insertions, 0 deletions
diff --git a/gas/testsuite/gas/bpf/indcall-badoperand.d b/gas/testsuite/gas/bpf/indcall-badoperand.d
new file mode 100644
index 0000000..bf2e9e8
--- /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 0000000..d791435
--- /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 0000000..cf19c0a
--- /dev/null
+++ b/gas/testsuite/gas/bpf/indcall-badoperand.s
@@ -0,0 +1,8 @@
+
+ .text
+ .align 4
+main:
+
+ mov %r0, 1
+ call %0
+ exit