1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
2 // RUN: %clang_cc1 -triple riscv32 -target-feature +zkne -emit-llvm %s -o - \
3 // RUN: -disable-O0-optnone | opt -S -passes=mem2reg \
4 // RUN: | FileCheck %s -check-prefix=RV32ZKNE
8 // RV32ZKNE-LABEL: @aes32esi(
9 // RV32ZKNE-NEXT: entry:
10 // RV32ZKNE-NEXT: [[TMP0:%.*]] = call i32 @llvm.riscv.aes32esi(i32 [[RS1:%.*]], i32 [[RS2:%.*]], i32 3)
11 // RV32ZKNE-NEXT: ret i32 [[TMP0]]
13 uint32_t aes32esi(uint32_t rs1
, uint32_t rs2
) {
14 return __builtin_riscv_aes32esi(rs1
, rs2
, 3);
17 // RV32ZKNE-LABEL: @aes32esmi(
18 // RV32ZKNE-NEXT: entry:
19 // RV32ZKNE-NEXT: [[TMP0:%.*]] = call i32 @llvm.riscv.aes32esmi(i32 [[RS1:%.*]], i32 [[RS2:%.*]], i32 3)
20 // RV32ZKNE-NEXT: ret i32 [[TMP0]]
22 uint32_t aes32esmi(uint32_t rs1
, uint32_t rs2
) {
23 return __builtin_riscv_aes32esmi(rs1
, rs2
, 3);