]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/testsuite/pru/dmem-zero-trap.s
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / sim / testsuite / pru / dmem-zero-trap.s
CommitLineData
e2e9097b
DD
1# Check that DMEM zero address access can be trapped.
2# mach: pru
3# sim: --error-null-deref
4# xerror:
5# output: core: 4 byte read to unmapped address 0x0 at *\n
6
1d506c26 7# Copyright (C) 2016-2024 Free Software Foundation, Inc.
e2e9097b
DD
8# Contributed by Dimitar Dimitrov <dimitar@dinux.eu>
9#
10# This file is part of the GNU simulators.
11#
12# This program is free software; you can redistribute it and/or modify
13# it under the terms of the GNU General Public License as published by
14# the Free Software Foundation; either version 3 of the License, or
15# (at your option) any later version.
16#
17# This program is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program. If not, see <http://www.gnu.org/licenses/>.
24
25.include "testutils.inc"
26
27 start
28
29 ldi r1, 0
30 lbbo &r2, r1, 0, 4
31
32 pass