1 # GAS testsuite for the Linux eBPF -*- Tcl -*-
3 # Copyright (C) 2019-2023 Free Software Foundation, Inc.
4 # Contributed by Oracle, Inc.
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.
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.
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.
20 if {[istarget bpf*-*-*]} {
21 # Little-endian BPF tests
26 run_dump_test lddw-pseudoc
28 run_dump_test alu-pseudoc
30 run_dump_test alu32-pseudoc
32 run_dump_test mem-pseudoc
34 run_dump_test jump-pseudoc
36 run_dump_test jump32-pseudoc
37 run_dump_test atomic-v1
39 run_dump_test atomic-pseudoc
40 run_dump_test indcall-1
41 run_dump_test indcall-1-pseudoc
43 run_dump_test jump-relax-ja
44 run_dump_test jump-relax-jump
46 # Big-endian BPF tests
51 run_dump_test lddw-be-pseudoc
53 run_dump_test alu-be-pseudoc
54 run_dump_test alu32-be
55 run_dump_test alu32-be-pseudoc
57 run_dump_test mem-be-pseudoc
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
66 run_dump_test jump-relax-ja-be
67 run_dump_test jump-relax-jump-be
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