2 # RUN: llvm-mc %s -triple=riscv64 -mattr=+experimental-b -show-encoding \
3 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
4 # RUN: llvm-mc -filetype=obj -triple=riscv64 -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=riscv64 -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=riscv64 -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 # CHECK-ASM-AND-OBJ: clzw t0, t1
16 # CHECK-ASM: encoding: [0x9b,0x12,0x03,0x60]
18 # CHECK-ASM-AND-OBJ: ctzw t0, t1
19 # CHECK-ASM: encoding: [0x9b,0x12,0x13,0x60]
21 # CHECK-ASM-AND-OBJ: cpopw t0, t1
22 # CHECK-ASM: encoding: [0x9b,0x12,0x23,0x60]