]>
Commit | Line | Data |
---|---|---|
f8861f5d JM |
1 | # GAS testsuite for the Linux eBPF -*- Tcl -*- |
2 | # | |
d87bef3a | 3 | # Copyright (C) 2019-2023 Free Software Foundation, Inc. |
f8861f5d JM |
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*-*-*]} { | |
dd2947e7 JM |
21 | # Misc tests. |
22 | run_dump_test comments | |
23 | run_dump_test comments-pseudoc | |
24 | ||
b5c37946 SJ |
25 | # Little-endian BPF tests |
26 | run_dump_test call | |
27 | run_dump_test exit | |
28 | run_dump_test data | |
f8861f5d | 29 | run_dump_test lddw |
2b8c7766 | 30 | run_dump_test lddw-pseudoc |
f8861f5d | 31 | run_dump_test alu |
2b8c7766 | 32 | run_dump_test alu-pseudoc |
f8861f5d | 33 | run_dump_test alu32 |
2b8c7766 | 34 | run_dump_test alu32-pseudoc |
f8861f5d | 35 | run_dump_test mem |
2b8c7766 | 36 | run_dump_test mem-pseudoc |
f8861f5d | 37 | run_dump_test jump |
2b8c7766 | 38 | run_dump_test jump-pseudoc |
c54a9b56 | 39 | run_dump_test jump32 |
2b8c7766 | 40 | run_dump_test jump32-pseudoc |
b5c37946 | 41 | run_dump_test atomic-v1 |
f8861f5d | 42 | run_dump_test atomic |
2b8c7766 | 43 | run_dump_test atomic-pseudoc |
b5c37946 SJ |
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 | |
249d4715 | 49 | |
b5c37946 SJ |
50 | # Big-endian BPF tests |
51 | run_dump_test call-be | |
52 | run_dump_test exit-be | |
53 | run_dump_test data-be | |
f8861f5d | 54 | run_dump_test lddw-be |
2b8c7766 | 55 | run_dump_test lddw-be-pseudoc |
f8861f5d | 56 | run_dump_test alu-be |
2b8c7766 | 57 | run_dump_test alu-be-pseudoc |
f8861f5d | 58 | run_dump_test alu32-be |
2b8c7766 | 59 | run_dump_test alu32-be-pseudoc |
f8861f5d | 60 | run_dump_test mem-be |
b5c37946 | 61 | run_dump_test mem-be-pseudoc |
f8861f5d | 62 | run_dump_test jump-be |
b5c37946 SJ |
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 | |
f8861f5d | 67 | run_dump_test atomic-be |
b5c37946 | 68 | run_dump_test atomic-be-pseudoc |
249d4715 | 69 | |
b5c37946 SJ |
70 | run_dump_test jump-relax-ja-be |
71 | run_dump_test jump-relax-jump-be | |
03460429 | 72 | |
b5c37946 SJ |
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 | |
e5d6f72e | 79 | |
8fbb497b JM |
80 | # In Pseudo-C it is not possible to refer to symbols |
81 | # as operands that have the same name than registers. | |
82 | run_dump_test regs-for-symbols-pseudoc | |
83 | ||
e5d6f72e DF |
84 | # Test that parser does not create undefined symbols |
85 | run_dump_test asm-extra-sym-1 | |
f8861f5d | 86 | } |