]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/testsuite/gas/bpf/bpf.exp
bpf: fix bpf expression parsing regression in GAS
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / bpf / bpf.exp
1 # GAS testsuite for the Linux eBPF -*- Tcl -*-
2 #
3 # Copyright (C) 2019-2024 Free Software Foundation, Inc.
4 # Contributed by Oracle, Inc.
5
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
19
20 if {[istarget bpf*-*-*]} {
21 # Misc tests.
22 run_dump_test comments
23 run_dump_test comments-pseudoc
24
25 # Little-endian BPF tests
26 run_dump_test call
27 run_dump_test exit
28 run_dump_test data
29 run_dump_test lddw
30 run_dump_test lddw-pseudoc
31 run_dump_test alu
32 run_dump_test alu-pseudoc
33 run_dump_test alu32
34 run_dump_test alu32-pseudoc
35 run_dump_test mem
36 run_dump_test mem-pseudoc
37 run_dump_test jump
38 run_dump_test jump-pseudoc
39 run_dump_test jump32
40 run_dump_test jump32-pseudoc
41 run_dump_test atomic-v1
42 run_dump_test atomic
43 run_dump_test atomic-pseudoc
44 run_dump_test indcall-1
45 run_dump_test indcall-1-pseudoc
46
47 run_dump_test jump-relax-ja
48 run_dump_test jump-relax-jump
49
50 # Big-endian BPF tests
51 run_dump_test call-be
52 run_dump_test exit-be
53 run_dump_test data-be
54 run_dump_test lddw-be
55 run_dump_test lddw-be-pseudoc
56 run_dump_test alu-be
57 run_dump_test alu-be-pseudoc
58 run_dump_test alu32-be
59 run_dump_test alu32-be-pseudoc
60 run_dump_test mem-be
61 run_dump_test mem-be-pseudoc
62 run_dump_test jump-be
63 run_dump_test jump-be-pseudoc
64 run_dump_test jump32-be
65 run_dump_test jump32-be-pseudoc
66 run_dump_test atomic-v1-be
67 run_dump_test atomic-be
68 run_dump_test atomic-be-pseudoc
69
70 run_dump_test jump-relax-ja-be
71 run_dump_test jump-relax-jump-be
72
73 # Overflow tests
74 run_dump_test offset16-overflow
75 run_dump_test disp16-overflow
76 run_dump_test disp16-overflow-relax
77 run_dump_test disp32-overflow
78 run_dump_test imm32-overflow
79
80 # Bad operand (regression)
81 run_dump_test indcall-badoperand
82
83 # In Pseudo-C it is not possible to refer to symbols
84 # as operands that have the same name than registers.
85 run_dump_test regs-for-symbols-pseudoc
86
87 # Test that parser does not create undefined symbols
88 run_dump_test asm-extra-sym-1
89
90 # Test relocation installation
91 run_dump_test elf-relo-1
92 }