2 # RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-b -show-encoding \
3 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
4 # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+experimental-b < %s \
5 # RUN: | llvm-objdump --mattr=+experimental-b -d -r - \
6 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
8 # With Bitmanip base extension:
9 # RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-zbb -riscv-no-aliases -show-encoding \
10 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
11 # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+experimental-zbb < %s \
12 # RUN: | llvm-objdump --mattr=+experimental-zbb -M no-aliases -d -r - \
13 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
15 # With Bitmanip permutation extension:
16 # RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-zbp -show-encoding \
17 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
18 # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+experimental-zbp < %s \
19 # RUN: | llvm-objdump --mattr=+experimental-zbp -d -r - \
20 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
22 # CHECK-ASM-AND-OBJ: zext.h t0, t1
23 # CHECK-ASM: encoding: [0xb3,0x42,0x03,0x08]
25 # CHECK-ASM-AND-OBJ: rev8 t0, t1
26 # CHECK-ASM: encoding: [0x93,0x52,0x83,0x69]