1 /* ldst-reg-unscaled-imm.s Test file for AArch64
2 load-store reg. (unscaled imm.) instructions.
4 Copyright 2011, 2012 Free Software Foundation, Inc.
5 Contributed by ARM Ltd.
7 This file is part of GAS.
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.
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.
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/>. */
24 /* Prefetch memory instruction is not tested here.
26 Also note that a programmer-friendly disassembler could display
27 LDUR/STUR instructions using the standard LDR/STR mnemonics when
28 the encoded immediate is negative or unaligned. However this behaviour
29 is not required by the architectural assembly language. */
31 .macro op2_no_imm op, reg
35 .macro op2 op, reg, simm
36 \op \reg\()7, [sp, #\simm]
39 // load to or store from core register
40 .macro ld_or_st op, suffix, reg
42 op2 \op\suffix, \reg, \simm
44 op2_no_imm \op\suffix, \reg
45 .irp simm, 0, 2, 4, 8, 16, 85, 255
46 op2 \op\suffix, \reg, \simm
50 // load to or store from FP/SIMD register
52 .irp reg, b, h, s, d, q
57 .irp simm, 0, 2, 4, 8, 16, 85, 255
64 // load to or store from FP/SIMD register
68 // load to or store from core register