| 1 | /* advsimd-across.s Test file for AArch64 Advanced-SIMD across |
| 2 | instructions. |
| 3 | |
| 4 | Copyright (C) 2011-2014 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 asimdall op, V, T |
| 24 | \op \V\()7, v31.\()\T |
| 25 | .endm |
| 26 | |
| 27 | .text |
| 28 | .irp op, saddlv, uaddlv |
| 29 | asimdall \op, h, 8b |
| 30 | asimdall \op, h, 16b |
| 31 | asimdall \op, s, 4h |
| 32 | asimdall \op, s, 8h |
| 33 | asimdall \op, d, 4s |
| 34 | .endr |
| 35 | |
| 36 | .irp op, smaxv, umaxv, sminv, uminv, addv |
| 37 | asimdall \op, b, 8b |
| 38 | asimdall \op, b, 16b |
| 39 | asimdall \op, h, 4h |
| 40 | asimdall \op, h, 8h |
| 41 | asimdall \op, s, 4s |
| 42 | .endr |
| 43 | |
| 44 | .irp op, fmaxnmv, fminnmv, fmaxv, fminv |
| 45 | asimdall \op, s, 4s |
| 46 | .endr |