6bf23695f2366935ed188a1acd6ac6f8bd0013d1
[external/binutils.git] / gas / testsuite / gas / aarch64 / virthostext.s
1 /* virthostext.s Test file for ARMv8.1 Virtualization Host Extension
2         support.
3
4    Copyright (C) 2015 Free Software Foundation, Inc.
5    Contributed by ARM Ltd.
6
7    This file is part of GAS.
8
9    GAS 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    GAS 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; see the file COPYING3.  If not,
21    see <http://www.gnu.org/licenses/>.  */
22
23         .macro rw_sys_reg sys_reg xreg
24         msr \sys_reg, \xreg
25         mrs \xreg, \sys_reg
26         .endm
27
28         .text
29         .ifdef DIRECTIVE
30         .arch armv8.1-a
31         .endif
32
33         rw_sys_reg spsr_el12 x7
34         rw_sys_reg elr_el12 x7
35
36         rw_sys_reg sctlr_el12 x7
37         rw_sys_reg cpacr_el12 x7
38
39         rw_sys_reg ttbr1_el2 x7
40         rw_sys_reg ttbr0_el12 x7
41         rw_sys_reg ttbr1_el12 x7
42
43         rw_sys_reg tcr_el12 x7
44
45         rw_sys_reg afsr0_el12 x7
46         rw_sys_reg afsr1_el12 x7
47
48         rw_sys_reg esr_el12 x7
49         rw_sys_reg far_el12 x7
50         rw_sys_reg mair_el12 x7
51         rw_sys_reg amair_el12 x7
52         rw_sys_reg vbar_el12 x7
53
54         rw_sys_reg contextidr_el2 x7
55         rw_sys_reg contextidr_el12 x7
56
57         rw_sys_reg cntkctl_el12 x7
58
59         rw_sys_reg cntp_tval_el02 x7
60         rw_sys_reg cntp_ctl_el02 x7
61         rw_sys_reg cntp_cval_el02 x7
62
63         rw_sys_reg cntv_tval_el02 x7
64         rw_sys_reg cntv_ctl_el02 x7
65         rw_sys_reg cntv_cval_el02 x7
66
67         rw_sys_reg cnthv_tval_el2 x7
68         rw_sys_reg cnthv_ctl_el2 x7
69         rw_sys_reg cnthv_cval_el2 x7