brintos

brintos / llvm-project-archived public Read only

0
0
Text · 887 B · 8b6e1f1 Raw
25 lines · c
1// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py2// RUN: %clang_cc1 -triple riscv32 -target-feature +zknd -emit-llvm %s -o - \3// RUN:     -disable-O0-optnone | opt -S -passes=mem2reg \4// RUN:     | FileCheck %s  -check-prefix=RV32ZKND5 6#include <riscv_crypto.h>7 8// RV32ZKND-LABEL: @aes32dsi(9// RV32ZKND-NEXT:  entry:10// RV32ZKND-NEXT:    [[TMP0:%.*]] = call i32 @llvm.riscv.aes32dsi(i32 [[RS1:%.*]], i32 [[RS2:%.*]], i32 3)11// RV32ZKND-NEXT:    ret i32 [[TMP0]]12//13uint32_t aes32dsi(uint32_t rs1, uint32_t rs2) {14  return __riscv_aes32dsi(rs1, rs2, 3);15}16 17// RV32ZKND-LABEL: @aes32dsmi(18// RV32ZKND-NEXT:  entry:19// RV32ZKND-NEXT:    [[TMP0:%.*]] = call i32 @llvm.riscv.aes32dsmi(i32 [[RS1:%.*]], i32 [[RS2:%.*]], i32 3)20// RV32ZKND-NEXT:    ret i32 [[TMP0]]21//22uint32_t aes32dsmi(uint32_t rs1, uint32_t rs2) {23  return __riscv_aes32dsmi(rs1, rs2, 3);24}25