68 lines · plain
1; RUN: llvm-mc -triple arm64-apple-darwin -mattr=crypto -show-encoding -output-asm-variant=1 < %s | FileCheck %s2; RUN: llvm-mc -triple arm64-apple-darwin -mattr='+crypto,+fuse-aes' -show-encoding -output-asm-variant=1 < %s | FileCheck %s3 4foo:5 aese.16b v0, v16 aesd.16b v0, v17 aesmc.16b v0, v18 aesimc.16b v0, v19 10 sha1c.4s q0, s1, v211 sha1p.4s q0, s1, v212 sha1m.4s q0, s1, v213 sha1su0.4s v0, v1, v214 sha256h.4s q0, q1, v215 sha256h2.4s q0, q1, v216 sha256su1.4s v0, v1, v217 sha1h s0, s118 sha1su1.4s v0, v119 sha256su0.4s v0, v120 21; CHECK: aese.16b v0, v1 ; encoding: [0x20,0x48,0x28,0x4e]22; CHECK: aesd.16b v0, v1 ; encoding: [0x20,0x58,0x28,0x4e]23; CHECK: aesmc.16b v0, v1 ; encoding: [0x20,0x68,0x28,0x4e]24; CHECK: aesimc.16b v0, v1 ; encoding: [0x20,0x78,0x28,0x4e]25 26; CHECK: sha1c.4s q0, s1, v2 ; encoding: [0x20,0x00,0x02,0x5e]27; CHECK: sha1p.4s q0, s1, v2 ; encoding: [0x20,0x10,0x02,0x5e]28; CHECK: sha1m.4s q0, s1, v2 ; encoding: [0x20,0x20,0x02,0x5e]29; CHECK: sha1su0.4s v0, v1, v2 ; encoding: [0x20,0x30,0x02,0x5e]30; CHECK: sha256h.4s q0, q1, v2 ; encoding: [0x20,0x40,0x02,0x5e]31; CHECK: sha256h2.4s q0, q1, v2 ; encoding: [0x20,0x50,0x02,0x5e]32; CHECK: sha256su1.4s v0, v1, v2 ; encoding: [0x20,0x60,0x02,0x5e]33; CHECK: sha1h s0, s1 ; encoding: [0x20,0x08,0x28,0x5e]34; CHECK: sha1su1.4s v0, v1 ; encoding: [0x20,0x18,0x28,0x5e]35; CHECK: sha256su0.4s v0, v1 ; encoding: [0x20,0x28,0x28,0x5e]36 37 aese v2.16b, v3.16b38 aesd v5.16b, v7.16b39 aesmc v11.16b, v13.16b40 aesimc v17.16b, v19.16b41 42; CHECK: aese.16b v2, v3 ; encoding: [0x62,0x48,0x28,0x4e]43; CHECK: aesd.16b v5, v7 ; encoding: [0xe5,0x58,0x28,0x4e]44; CHECK: aesmc.16b v11, v13 ; encoding: [0xab,0x69,0x28,0x4e]45; CHECK: aesimc.16b v17, v19 ; encoding: [0x71,0x7a,0x28,0x4e]46 47 sha1c q23, s29, v3.4s48 sha1p q14, s15, v9.4s49 sha1m q2, s6, v5.4s50 sha1su0 v3.4s, v5.4s, v9.4s51 sha256h q2, q7, v18.4s52 sha256h2 q28, q18, v28.4s53 sha256su1 v4.4s, v5.4s, v9.4s54 sha1h s30, s055 sha1su1 v10.4s, v21.4s56 sha256su0 v2.4s, v31.4s57 58; CHECK: sha1c.4s q23, s29, v3 ; encoding: [0xb7,0x03,0x03,0x5e]59; CHECK: sha1p.4s q14, s15, v9 ; encoding: [0xee,0x11,0x09,0x5e]60; CHECK: sha1m.4s q2, s6, v5 ; encoding: [0xc2,0x20,0x05,0x5e]61; CHECK: sha1su0.4s v3, v5, v9 ; encoding: [0xa3,0x30,0x09,0x5e]62; CHECK: sha256h.4s q2, q7, v18 ; encoding: [0xe2,0x40,0x12,0x5e]63; CHECK: sha256h2.4s q28, q18, v28 ; encoding: [0x5c,0x52,0x1c,0x5e]64; CHECK: sha256su1.4s v4, v5, v9 ; encoding: [0xa4,0x60,0x09,0x5e]65; CHECK: sha1h s30, s0 ; encoding: [0x1e,0x08,0x28,0x5e]66; CHECK: sha1su1.4s v10, v21 ; encoding: [0xaa,0x1a,0x28,0x5e]67; CHECK: sha256su0.4s v2, v31 ; encoding: [0xe2,0x2b,0x28,0x5e]68