]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/testsuite/gas/bpf/bpf.exp
80f5a1dbc2d00a485b5516a4281bce19d63b1f95
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / bpf / bpf.exp
1 # GAS testsuite for the Linux eBPF -*- Tcl -*-
2 #
3 # Copyright (C) 2019-2023 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 # Little-endian BPF tests
22 run_dump_test call
23 run_dump_test exit
24 run_dump_test data
25 run_dump_test lddw
26 run_dump_test lddw-pseudoc
27 run_dump_test alu
28 run_dump_test alu-pseudoc
29 run_dump_test alu32
30 run_dump_test alu32-pseudoc
31 run_dump_test mem
32 run_dump_test mem-pseudoc
33 run_dump_test jump
34 run_dump_test jump-pseudoc
35 run_dump_test jump32
36 run_dump_test jump32-pseudoc
37 run_dump_test atomic-v1
38 run_dump_test atomic
39 run_dump_test atomic-pseudoc
40 run_dump_test indcall-1
41 run_dump_test indcall-1-pseudoc
42
43 run_dump_test jump-relax-ja
44 run_dump_test jump-relax-jump
45
46 # Big-endian BPF tests
47 run_dump_test call-be
48 run_dump_test exit-be
49 run_dump_test data-be
50 run_dump_test lddw-be
51 run_dump_test lddw-be-pseudoc
52 run_dump_test alu-be
53 run_dump_test alu-be-pseudoc
54 run_dump_test alu32-be
55 run_dump_test alu32-be-pseudoc
56 run_dump_test mem-be
57 run_dump_test mem-be-pseudoc
58 run_dump_test jump-be
59 run_dump_test jump-be-pseudoc
60 run_dump_test jump32-be
61 run_dump_test jump32-be-pseudoc
62 run_dump_test atomic-v1-be
63 run_dump_test atomic-be
64 run_dump_test atomic-be-pseudoc
65
66 run_dump_test jump-relax-ja-be
67 run_dump_test jump-relax-jump-be
68
69 # Overflow tests
70 run_dump_test offset16-overflow
71 run_dump_test disp16-overflow
72 run_dump_test disp16-overflow-relax
73 run_dump_test disp32-overflow
74 run_dump_test imm32-overflow
75 }