]>
Commit | Line | Data |
---|---|---|
e57cf1f2 DD |
1 | # Check that lmbd insn works. |
2 | # mach: pru | |
3 | ||
4a94e368 | 4 | # Copyright (C) 2020-2022 Free Software Foundation, Inc. |
e57cf1f2 DD |
5 | # Contributed by Dimitar Dimitrov <dimitar@dinux.eu> |
6 | # | |
7 | # This file is part of the GNU simulators. | |
8 | # | |
9 | # This program is free software; you can redistribute it and/or modify | |
10 | # it under the terms of the GNU General Public License as published by | |
11 | # the Free Software Foundation; either version 3 of the License, or | |
12 | # (at your option) any later version. | |
13 | # | |
14 | # This program is distributed in the hope that it will be useful, | |
15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | # GNU General Public License for more details. | |
18 | # | |
19 | # You should have received a copy of the GNU General Public License | |
20 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
21 | ||
22 | .include "testutils.inc" | |
23 | ||
24 | start | |
25 | ||
26 | ldi32 r14, 0xffffffff | |
27 | ldi32 r15, 0x0 | |
28 | ldi32 r16, 0x40000000 | |
29 | ldi32 r17, 8 | |
30 | ||
31 | lmbd r0, r14, 0 | |
32 | qbne 2f, r0, 32 | |
33 | ||
34 | lmbd r0, r14, 1 | |
35 | qbne 2f, r0, 31 | |
36 | ||
37 | lmbd r0, r15, 1 | |
38 | qbne 2f, r0, 32 | |
39 | ||
40 | lmbd r0, r15, 0 | |
41 | qbne 2f, r0, 31 | |
42 | ||
43 | lmbd r0, r16, r15 | |
44 | qbne 2f, r0, 31 | |
45 | ||
46 | lmbd r0, r16, 1 | |
47 | qbne 2f, r0, 30 | |
48 | ||
49 | lmbd r0, r14.w1, 1 | |
50 | qbne 2f, r0, 15 | |
51 | ||
52 | lmbd r0, r17.b0, 1 | |
53 | qbne 2f, r0, 3 | |
54 | ||
55 | lmbd r0, r17.b0, r15 | |
56 | qbne 2f, r0, 7 | |
57 | ||
58 | ||
59 | 1: | |
60 | pass | |
61 | 2: fail |