-
Notifications
You must be signed in to change notification settings - Fork 3
/
test_aarch64.s
51 lines (49 loc) · 1.05 KB
/
test_aarch64.s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*****************************************************************************
* Copyright (c) 2013 Linaro Limited
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Claudio Fontana (Linaro) - initial implementation
* based on test_arm.s by Peter Maydell
*****************************************************************************/
/* Initialise the gp regs */
mov w0, 0
mov w1, 1
mov w2, 2
mov w3, 3
mov w4, 4
mov w5, 5
mov w6, 6
mov w7, 7
mov w8, 8
mov w9, 9
mov w10, 10
mov w11, 11
mov w12, 12
mov w13, 13
mov w14, 14
mov w15, 15
mov w16, 16
mov w17, 17
mov w18, 18
mov w19, 19
mov w20, 20
mov w21, 21
mov w22, 22
mov w23, 23
mov w24, 24
mov w25, 25
mov w26, 26
mov w27, 27
mov w28, 28
mov w29, 29
mov w30, 30
/* do compare.
* The manual says instr with bits (28,27) == 0 0 are UNALLOCATED
*/
.int 0x00005af0
/* exit test */
.int 0x00005af1