9e7e9d46f54770053d51cf9565732ad8399ffe0c
[external/binutils.git] / gas / testsuite / gas / aarch64 / crypto.s
1 /* crypto.s Test file for AArch64 Advanced-SIMD Crypto instructions.
2
3    Copyright (C) 2012-2014 Free Software Foundation, Inc.  Contributed by ARM Ltd.
4
5    This file is part of GAS.
6
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.
11
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.
16
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/>.  */
20
21
22         .text
23         .ifdef DIRECTIVE
24         .arch_extension crypto
25         .endif
26
27         aese    v7.16b, v31.16b
28         aesd    v7.16b, v31.16b
29         aesmc   v7.16b, v31.16b
30         aesimc  v7.16b, v31.16b
31
32         sha1h   s7, s31
33         sha1su1 v7.4s, v31.4s
34         sha256su0       v7.4s, v31.4s
35
36         sha1c   q7, s15, v31.4s
37         sha1p   q7, s15, v31.4s
38         sha1m   q7, s15, v31.4s
39
40         sha1su0 v7.4s, v15.4s, v31.4s
41         sha256h q7, q15, v31.4s
42         sha256h2        q7, q15, v31.4s
43         sha256su1       v7.4s, v15.4s, v31.4s
44
45         pmull   v7.8h, v15.8b, v31.8b
46         pmull   v7.1q, v15.1d, v31.1d
47         pmull2  v7.8h, v15.16b, v31.16b
48         pmull2  v7.1q, v15.2d, v31.2d
49
50         .arch_extension nocrypto