~ubuntu-branches/ubuntu/utopic/binutils-arm64-cross/utopic

« back to all changes in this revision

Viewing changes to binutils-2.23.52.20130611/gas/testsuite/gas/aarch64/advsisd-copy.s

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-06-20 17:38:09 UTC
  • Revision ID: package-import@ubuntu.com-20130620173809-app8lzgvymy5fg6c
Tags: 0.7
Build-depend on binutils-source (>= 2.23.52.20130620-1~).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* advsisd-copy.s Test file for AArch64 Advanced-SISD copy instructions.
 
2
 
 
3
   Copyright 2011, 2012 Free Software Foundation, Inc.
 
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
        .macro  element2scalar  op, type, index
 
23
        \op     \type\()31, V7.\type[\index]
 
24
        .endm
 
25
 
 
26
        .macro  iterate op, type, from, to
 
27
        element2scalar  \op, \type, \from
 
28
        .if \to-\from
 
29
        iterate \op, \type, "(\from+1)", \to
 
30
        .endif
 
31
        .endm
 
32
 
 
33
.text
 
34
        .irp    op, dup, mov
 
35
        iterate \op, b, 0, 15
 
36
        iterate \op, h, 0, 7
 
37
        iterate \op, s, 0, 3
 
38
        iterate \op, d, 0, 1
 
39
        .endr