1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=riscv64 -mattr=+zknh -verify-machineinstrs < %s \
3 ; RUN: | FileCheck %s -check-prefix=RV64ZKNH
6 declare i32 @llvm.riscv.sha256sig0(i32);
8 define signext i32 @sha256sig0_i32(i32 signext %a) nounwind {
9 ; RV64ZKNH-LABEL: sha256sig0_i32:
11 ; RV64ZKNH-NEXT: sha256sig0 a0, a0
13 %val = call i32 @llvm.riscv.sha256sig0(i32 signext %a)
17 declare i32 @llvm.riscv.sha256sig1(i32);
19 define signext i32 @sha256sig1_i32(i32 signext %a) nounwind {
20 ; RV64ZKNH-LABEL: sha256sig1_i32:
22 ; RV64ZKNH-NEXT: sha256sig1 a0, a0
24 %val = call i32 @llvm.riscv.sha256sig1(i32 signext %a)
28 declare i32 @llvm.riscv.sha256sum0(i32);
30 define signext i32 @sha256sum0_i32(i32 signext %a) nounwind {
31 ; RV64ZKNH-LABEL: sha256sum0_i32:
33 ; RV64ZKNH-NEXT: sha256sum0 a0, a0
35 %val = call i32 @llvm.riscv.sha256sum0(i32 signext %a)
39 declare i32 @llvm.riscv.sha256sum1(i32);
41 define signext i32 @sha256sum1_i32(i32 signext %a) nounwind {
42 ; RV64ZKNH-LABEL: sha256sum1_i32:
44 ; RV64ZKNH-NEXT: sha256sum1 a0, a0
46 %val = call i32 @llvm.riscv.sha256sum1(i32 signext %a)
50 declare i64 @llvm.riscv.sha512sig0(i64);
52 define i64 @sha512sig0(i64 %a) nounwind {
53 ; RV64ZKNH-LABEL: sha512sig0:
55 ; RV64ZKNH-NEXT: sha512sig0 a0, a0
57 %val = call i64 @llvm.riscv.sha512sig0(i64 %a)
61 declare i64 @llvm.riscv.sha512sig1(i64);
63 define i64 @sha512sig1(i64 %a) nounwind {
64 ; RV64ZKNH-LABEL: sha512sig1:
66 ; RV64ZKNH-NEXT: sha512sig1 a0, a0
68 %val = call i64 @llvm.riscv.sha512sig1(i64 %a)
72 declare i64 @llvm.riscv.sha512sum0(i64);
74 define i64 @sha512sum0(i64 %a) nounwind {
75 ; RV64ZKNH-LABEL: sha512sum0:
77 ; RV64ZKNH-NEXT: sha512sum0 a0, a0
79 %val = call i64 @llvm.riscv.sha512sum0(i64 %a)
83 declare i64 @llvm.riscv.sha512sum1(i64);
85 define i64 @sha512sum1(i64 %a) nounwind {
86 ; RV64ZKNH-LABEL: sha512sum1:
88 ; RV64ZKNH-NEXT: sha512sum1 a0, a0
90 %val = call i64 @llvm.riscv.sha512sum1(i64 %a)