1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=riscv64 -mattr=+zksed -verify-machineinstrs < %s \
3 ; RUN: | FileCheck %s -check-prefix=RV64ZKSED
5 declare i64 @llvm.riscv.sm4ks.i64(i64, i64, i8);
7 define i64 @sm4ks_i64(i64 %a, i64 %b) nounwind {
8 ; RV64ZKSED-LABEL: sm4ks_i64:
10 ; RV64ZKSED-NEXT: sm4ks a0, a0, a1, 0
12 %val = call i64 @llvm.riscv.sm4ks.i64(i64 %a, i64 %b, i8 0)
16 declare i64 @llvm.riscv.sm4ed.i64(i64, i64, i8);
18 define i64 @sm4ed_i64(i64 %a, i64 %b) nounwind {
19 ; RV64ZKSED-LABEL: sm4ed_i64:
21 ; RV64ZKSED-NEXT: sm4ed a0, a0, a1, 1
23 %val = call i64 @llvm.riscv.sm4ed.i64(i64 %a, i64 %b, i8 1)