Commit | Line | Data |
---|---|---|
72ca8fad MW |
1 | /* pan.s Test file for AArch64 PAN instructions. |
2 | ||
82704155 | 3 | Copyright (C) 2015-2019 Free Software Foundation, Inc. |
72ca8fad MW |
4 | Contributed by ARM Ltd. |
5 | ||
6 | This file is part of GAS. | |
7 | ||
8 | GAS is free software; you can redistribute it and/or modify | |
9 | it under the terms of the GNU General Public License as published by | |
10 | the Free Software Foundation; either version 3 of the license, or | |
11 | (at your option) any later version. | |
12 | ||
13 | GAS is distributed in the hope that it will be useful, | |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | GNU General Public License for more details. | |
17 | ||
18 | You should have received a copy of the GNU General Public License | |
19 | along with this program; see the file COPYING3. If not, | |
20 | see <http://www.gnu.org/licenses/>. */ | |
21 | ||
22 | ||
23 | .text | |
24 | .ifdef DIRECTIVE | |
25 | .arch_extension pan | |
26 | .endif | |
27 | ||
28 | msr pan, #1 | |
29 | msr pan, #0 | |
30 | ||
31 | msr pan, x0 | |
32 | mrs x1, pan | |
33 | ||
c2825638 MW |
34 | .ifdef ERROR |
35 | .irp N,2,3,4,5,6,7,8,9,10,11,12,13,14,15 | |
36 | msr pan, #\N | |
37 | .endr | |
38 | .endif | |
39 | ||
72ca8fad | 40 | .arch_extension nopan |