1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2-aes,+sve2-sha3,+sve2-sm4 < %s | FileCheck %s
3 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2,+sve-aes,+sve2-sha3,+sve2-sm4 < %s | FileCheck %s
9 define <vscale x 16 x i8> @aesd_i8(<vscale x 16 x i8> %a, <vscale x 16 x i8> %b) {
10 ; CHECK-LABEL: aesd_i8:
12 ; CHECK-NEXT: aesd z0.b, z0.b, z1.b
14 %out = call <vscale x 16 x i8> @llvm.aarch64.sve.aesd(<vscale x 16 x i8> %a,
15 <vscale x 16 x i8> %b)
16 ret <vscale x 16 x i8> %out
23 define <vscale x 16 x i8> @aesimc_i8(<vscale x 16 x i8> %a) {
24 ; CHECK-LABEL: aesimc_i8:
26 ; CHECK-NEXT: aesimc z0.b, z0.b
28 %out = call <vscale x 16 x i8> @llvm.aarch64.sve.aesimc(<vscale x 16 x i8> %a)
29 ret <vscale x 16 x i8> %out
36 define <vscale x 16 x i8> @aese_i8(<vscale x 16 x i8> %a, <vscale x 16 x i8> %b) {
37 ; CHECK-LABEL: aese_i8:
39 ; CHECK-NEXT: aese z0.b, z0.b, z1.b
41 %out = call <vscale x 16 x i8> @llvm.aarch64.sve.aese(<vscale x 16 x i8> %a,
42 <vscale x 16 x i8> %b)
43 ret <vscale x 16 x i8> %out
50 define <vscale x 16 x i8> @aesmc_i8(<vscale x 16 x i8> %a) {
51 ; CHECK-LABEL: aesmc_i8:
53 ; CHECK-NEXT: aesmc z0.b, z0.b
55 %out = call <vscale x 16 x i8> @llvm.aarch64.sve.aesmc(<vscale x 16 x i8> %a)
56 ret <vscale x 16 x i8> %out
63 define <vscale x 2 x i64> @rax1_i64(<vscale x 2 x i64> %a, <vscale x 2 x i64> %b) {
64 ; CHECK-LABEL: rax1_i64:
66 ; CHECK-NEXT: rax1 z0.d, z0.d, z1.d
68 %out = call <vscale x 2 x i64> @llvm.aarch64.sve.rax1(<vscale x 2 x i64> %a,
69 <vscale x 2 x i64> %b)
70 ret <vscale x 2 x i64> %out
77 define <vscale x 4 x i32> @sm4e_i32(<vscale x 4 x i32> %a, <vscale x 4 x i32> %b) {
78 ; CHECK-LABEL: sm4e_i32:
80 ; CHECK-NEXT: sm4e z0.s, z0.s, z1.s
82 %out = call <vscale x 4 x i32> @llvm.aarch64.sve.sm4e(<vscale x 4 x i32> %a,
83 <vscale x 4 x i32> %b)
84 ret <vscale x 4 x i32> %out
91 define <vscale x 4 x i32> @sm4ekey_i32(<vscale x 4 x i32> %a, <vscale x 4 x i32> %b) {
92 ; CHECK-LABEL: sm4ekey_i32:
94 ; CHECK-NEXT: sm4ekey z0.s, z0.s, z1.s
96 %out = call <vscale x 4 x i32> @llvm.aarch64.sve.sm4ekey(<vscale x 4 x i32> %a,
97 <vscale x 4 x i32> %b)
98 ret <vscale x 4 x i32> %out
102 declare <vscale x 16 x i8> @llvm.aarch64.sve.aesd(<vscale x 16 x i8>, <vscale x 16 x i8>)
103 declare <vscale x 16 x i8> @llvm.aarch64.sve.aesimc(<vscale x 16 x i8>)
104 declare <vscale x 16 x i8> @llvm.aarch64.sve.aese(<vscale x 16 x i8>, <vscale x 16 x i8>)
105 declare <vscale x 16 x i8> @llvm.aarch64.sve.aesmc(<vscale x 16 x i8>)
106 declare <vscale x 2 x i64> @llvm.aarch64.sve.rax1(<vscale x 2 x i64>, <vscale x 2 x i64>)
107 declare <vscale x 4 x i32> @llvm.aarch64.sve.sm4e(<vscale x 4 x i32>, <vscale x 4 x i32>)
108 declare <vscale x 4 x i32> @llvm.aarch64.sve.sm4ekey(<vscale x 4 x i32>, <vscale x 4 x i32>)