1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=riscv64 -mattr=+zknd -verify-machineinstrs < %s \
3 ; RUN: | FileCheck %s -check-prefix=RV64ZKND-ZKNE
4 ; RUN: llc -mtriple=riscv64 -mattr=+zkne -verify-machineinstrs < %s \
5 ; RUN: | FileCheck %s -check-prefix=RV64ZKND-ZKNE
7 declare i64 @llvm.riscv.aes64ks2(i64, i64);
9 define i64 @aes64ks2(i64 %a, i64 %b) nounwind {
10 ; RV64ZKND-ZKNE-LABEL: aes64ks2:
11 ; RV64ZKND-ZKNE: # %bb.0:
12 ; RV64ZKND-ZKNE-NEXT: aes64ks2 a0, a0, a1
13 ; RV64ZKND-ZKNE-NEXT: ret
14 %val = call i64 @llvm.riscv.aes64ks2(i64 %a, i64 %b)
18 declare i64 @llvm.riscv.aes64ks1i(i64, i32);
20 define i64 @aes64ks1i(i64 %a) nounwind {
21 ; RV64ZKND-ZKNE-LABEL: aes64ks1i:
22 ; RV64ZKND-ZKNE: # %bb.0:
23 ; RV64ZKND-ZKNE-NEXT: aes64ks1i a0, a0, 10
24 ; RV64ZKND-ZKNE-NEXT: ret
25 %val = call i64 @llvm.riscv.aes64ks1i(i64 %a, i32 10)