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 i64 @llvm.riscv.sha256sig0.i64(i64);
8 define i64 @sha256sig0_i64(i64 %a) nounwind {
9 ; RV64ZKNH-LABEL: sha256sig0_i64:
11 ; RV64ZKNH-NEXT: sha256sig0 a0, a0
13 %val = call i64 @llvm.riscv.sha256sig0.i64(i64 %a)
17 declare i64 @llvm.riscv.sha256sig1.i64(i64);
19 define i64 @sha256sig1_i64(i64 %a) nounwind {
20 ; RV64ZKNH-LABEL: sha256sig1_i64:
22 ; RV64ZKNH-NEXT: sha256sig1 a0, a0
24 %val = call i64 @llvm.riscv.sha256sig1.i64(i64 %a)
28 declare i64 @llvm.riscv.sha256sum0.i64(i64);
30 define i64 @sha256sum0_i64(i64 %a) nounwind {
31 ; RV64ZKNH-LABEL: sha256sum0_i64:
33 ; RV64ZKNH-NEXT: sha256sum0 a0, a0
35 %val = call i64 @llvm.riscv.sha256sum0.i64(i64 %a)
39 declare i64 @llvm.riscv.sha256sum1.i64(i64);
41 define i64 @sha256sum1_i64(i64 %a) nounwind {
42 ; RV64ZKNH-LABEL: sha256sum1_i64:
44 ; RV64ZKNH-NEXT: sha256sum1 a0, a0
46 %val = call i64 @llvm.riscv.sha256sum1.i64(i64 %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)