1 /* rdma.s Test file for AArch64 v8.1 Advanced-SIMD instructions.
3 Copyright (C) 2012-2020 Free Software Foundation, Inc. Contributed by ARM Ltd.
5 This file is part of GAS.
7 GAS is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the license, or
10 (at your option) any later version.
12 GAS is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; see the file COPYING3. If not,
19 see <http://www.gnu.org/licenses/>. */
27 /* irp seems broken, so get creative. */
29 .irp x, 0.\T, 3.\T, 13.\T, 23.\T, 29.\T
30 .irp y, 1.\T, 4.\T, 14.\T, 24.\T, 30.\T
31 .irp z, 2.\T, 5.\T, 15.\T, 25.\T, 31.\T
39 .irp inst, sqrdmlah, sqrdmlsh
40 .irp type, 4h, 8h, 2s, 4s
45 .macro scalar_inst I R
46 \I \R\()0, \R\()1, \R\()2
50 .irp inst, sqrdmlah, sqrdmlsh
52 scalar_inst \inst \reg
56 .macro vect_indexed_inst I S T N
57 .irp x, 0.\S\T, 3.\S\T, 13.\S\T, 23.\S\T, 29.\S\T
58 .irp y, 1.\S\T, 4.\S\T, 14.\S\T, 24.\S\T, 30.\S\T
59 .irp z, 0.\T[\N], 5.\T[\N], 10.\T[\N], 13.\T[\N], 15.\T[\N]
67 .irp inst, sqrdmlah, sqrdmlsh
70 vect_indexed_inst \inst \size h \index
75 vect_indexed_inst \inst \size s \index
80 .macro scalar_indexed_inst I T N
81 \I \T\()0, \T\()1, v2.\T[\N]
85 .irp inst, sqrdmlah, sqrdmlsh
88 scalar_indexed_inst \inst \type \index