1 # RUN: llvm-mc %s -triple=riscv32 -mattr=+zbkx -show-encoding \
2 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
3 # RUN: llvm-mc %s -triple=riscv64 -mattr=+zbkx -show-encoding \
4 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
5 # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=zbkx < %s \
6 # RUN: | llvm-objdump --mattr=+zbkx -d -r - \
7 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
8 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=zbkx < %s \
9 # RUN: | llvm-objdump --mattr=+zbkx -d -r - \
10 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
12 # CHECK-ASM-AND-OBJ: xperm8 t0, t1, t2
13 # CHECK-ASM: encoding: [0xb3,0x42,0x73,0x28]
15 # CHECK-ASM-AND-OBJ: xperm4 t0, t1, t2
16 # CHECK-ASM: encoding: [0xb3,0x22,0x73,0x28]