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 -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 -d -r - \
13 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
15 # With Bitmanip permutation extension:
16 # RUN: llvm-mc %s -triple=riscv64 -mattr=+experimental-zbp -show-encoding \
17 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
18 # RUN: llvm-mc -filetype=obj -triple=riscv64 -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: rolw t0, t1, t2
23 # CHECK-ASM: encoding: [0xbb,0x12,0x73,0x60]
25 # CHECK-ASM-AND-OBJ: rorw t0, t1, t2
26 # CHECK-ASM: encoding: [0xbb,0x52,0x73,0x60]
28 # CHECK-ASM-AND-OBJ: roriw t0, t1, 31
29 # CHECK-ASM: encoding: [0x9b,0x52,0xf3,0x61]
31 # CHECK-ASM-AND-OBJ: roriw t0, t1, 0
32 # CHECK-ASM: encoding: [0x9b,0x52,0x03,0x60]
34 # CHECK-ASM-AND-OBJ: zext.h t0, t1
35 # CHECK-ASM: encoding: [0xbb,0x42,0x03,0x08]
37 # CHECK-ASM-AND-OBJ: rev8 t0, t1
38 # CHECK-ASM: encoding: [0x93,0x52,0x83,0x6b]