1 ; RUN: llc -mtriple=riscv64 -mattr=+zbkx -verify-machineinstrs < %s \
2 ; RUN: | FileCheck %s -check-prefix=RV64ZBKX
4 declare i64 @llvm.riscv.xperm8.i64(i64 %a, i64 %b)
6 define i64 @xperm8(i64 %a, i64 %b) nounwind {
7 ; RV64ZBKX-LABEL: xperm8:
9 ; RV64ZBKX-NEXT: xperm8 a0, a0, a1
11 %tmp = call i64 @llvm.riscv.xperm8.i64(i64 %a, i64 %b)
15 declare i64 @llvm.riscv.xperm4.i64(i64 %a, i64 %b)
17 define i64 @xperm4(i64 %a, i64 %b) nounwind {
18 ; RV64ZBKX-LABEL: xperm4:
20 ; RV64ZBKX-NEXT: xperm4 a0, a0, a1
22 %tmp = call i64 @llvm.riscv.xperm4.i64(i64 %a, i64 %b)