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