// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// RUN: %clang_cc1 -triple riscv64 -target-feature +zkne -emit-llvm %s -o - \
// RUN: -disable-O0-optnone | opt -S -passes=mem2reg \
// RUN: | FileCheck %s -check-prefix=RV64ZKNE
#include <riscv_crypto.h>
// RV64ZKNE-LABEL: @aes64es(
// RV64ZKNE-NEXT: entry:
// RV64ZKNE-NEXT: [[TMP0:%.*]] = call i64 @llvm.riscv.aes64es(i64 [[RS1:%.*]], i64 [[RS2:%.*]])
// RV64ZKNE-NEXT: ret i64 [[TMP0]]
//
uint64_t aes64es(uint64_t rs1, uint64_t rs2) {
return __riscv_aes64es(rs1, rs2);
}
// RV64ZKNE-LABEL: @aes64esm(
// RV64ZKNE-NEXT: entry:
// RV64ZKNE-NEXT: [[TMP0:%.*]] = call i64 @llvm.riscv.aes64esm(i64 [[RS1:%.*]], i64 [[RS2:%.*]])
// RV64ZKNE-NEXT: ret i64 [[TMP0]]
//
uint64_t aes64esm(uint64_t rs1, uint64_t rs2) {
return __riscv_aes64esm(rs1, rs2);
}