1# RUN: llvm-mc -triple arm64-apple-darwin -mattr=crypto --disassemble < %s | FileCheck %s
2# RUN: llvm-mc -triple arm64-apple-darwin -mattr=crypto -output-asm-variant=1 --disassemble < %s | FileCheck %s --check-prefix=CHECK-APPLE
3
4  0x20 0x48 0x28 0x4e
5  0x20 0x58 0x28 0x4e
6  0x20 0x68 0x28 0x4e
7  0x20 0x78 0x28 0x4e
8  0x20 0x00 0x02 0x5e
9  0x20 0x10 0x02 0x5e
10  0x20 0x20 0x02 0x5e
11  0x20 0x30 0x02 0x5e
12  0x20 0x40 0x02 0x5e
13  0x20 0x50 0x02 0x5e
14  0x20 0x60 0x02 0x5e
15  0x20 0x08 0x28 0x5e
16  0x20 0x18 0x28 0x5e
17  0x20 0x28 0x28 0x5e
18
19# CHECK: aese v0.16b, v1.16b
20# CHECK: aesd v0.16b, v1.16b
21# CHECK: aesmc v0.16b, v1.16b
22# CHECK: aesimc v0.16b, v1.16b
23# CHECK: sha1c q0, s1, v2.4s
24# CHECK: sha1p q0, s1, v2.4s
25# CHECK: sha1m q0, s1, v2.4s
26# CHECK: sha1su0 v0.4s, v1.4s, v2
27# CHECK: sha256h q0, q1, v2.4s
28# CHECK: sha256h2 q0, q1, v2.4s
29# CHECK: sha256su1 v0.4s, v1.4s, v2.4s
30# CHECK: sha1h s0, s1
31# CHECK: sha1su1 v0.4s, v1.4s
32# CHECK: sha256su0 v0.4s, v1.4s
33
34# CHECK-APPLE: aese.16b v0, v1
35# CHECK-APPLE: aesd.16b v0, v1
36# CHECK-APPLE: aesmc.16b v0, v1
37# CHECK-APPLE: aesimc.16b v0, v1
38# CHECK-APPLE: sha1c.4s q0, s1, v2
39# CHECK-APPLE: sha1p.4s q0, s1, v2
40# CHECK-APPLE: sha1m.4s q0, s1, v2
41# CHECK-APPLE: sha1su0.4s v0, v1, v2
42# CHECK-APPLE: sha256h.4s q0, q1, v2
43# CHECK-APPLE: sha256h2.4s q0, q1, v2
44# CHECK-APPLE: sha256su1.4s v0, v1, v2
45# CHECK-APPLE: sha1h s0, s1
46# CHECK-APPLE: sha1su1.4s v0, v1
47# CHECK-APPLE: sha256su0.4s v0, v1
48