Skip to content

Commit 0395584

Browse files
committed
Precommit tests.
1 parent 8ed3cb0 commit 0395584

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

llvm/test/CodeGen/AArch64/sve2-intrinsics-crypto.ll

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@ define <vscale x 16 x i8> @aesd_i8(<vscale x 16 x i8> %a, <vscale x 16 x i8> %b)
1616
ret <vscale x 16 x i8> %out
1717
}
1818

19+
define <vscale x 16 x i8> @aesd_i8_commuted(<vscale x 16 x i8> %a,
20+
; CHECK-LABEL: aesd_i8_commuted:
21+
; CHECK: // %bb.0:
22+
; CHECK-NEXT: aesd z1.b, z1.b, z0.b
23+
; CHECK-NEXT: mov z0.d, z1.d
24+
; CHECK-NEXT: ret
25+
<vscale x 16 x i8> %b) {
26+
%out = call <vscale x 16 x i8> @llvm.aarch64.sve.aesd(<vscale x 16 x i8> %b,
27+
<vscale x 16 x i8> %a)
28+
ret <vscale x 16 x i8> %out
29+
}
30+
1931
;
2032
; AESIMC
2133
;
@@ -43,6 +55,18 @@ define <vscale x 16 x i8> @aese_i8(<vscale x 16 x i8> %a, <vscale x 16 x i8> %b)
4355
ret <vscale x 16 x i8> %out
4456
}
4557

58+
define <vscale x 16 x i8> @aese_i8_commuted(<vscale x 16 x i8> %a,
59+
; CHECK-LABEL: aese_i8_commuted:
60+
; CHECK: // %bb.0:
61+
; CHECK-NEXT: aese z1.b, z1.b, z0.b
62+
; CHECK-NEXT: mov z0.d, z1.d
63+
; CHECK-NEXT: ret
64+
<vscale x 16 x i8> %b) {
65+
%out = call <vscale x 16 x i8> @llvm.aarch64.sve.aese(<vscale x 16 x i8> %b,
66+
<vscale x 16 x i8> %a)
67+
ret <vscale x 16 x i8> %out
68+
}
69+
4670
;
4771
; AESMC
4872
;

0 commit comments

Comments
 (0)