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 %s -triple=riscv64 -mattr=+experimental-b -show-encoding \
5 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
6 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+experimental-b < %s \
7 # RUN: | llvm-objdump --mattr=+experimental-b -d -r - \
8 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
9 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+experimental-b < %s \
10 # RUN: | llvm-objdump --mattr=+experimental-b -d -r - \
11 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
13 # With Bitmanip base extension:
14 # RUN: llvm-mc %s -triple=riscv64 -mattr=+experimental-zbb -show-encoding \
15 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
16 # RUN: llvm-mc %s -triple=riscv64 -mattr=+experimental-zbb -show-encoding \
17 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
18 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+experimental-zbb < %s \
19 # RUN: | llvm-objdump --mattr=+experimental-zbb -d -r - \
20 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
21 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+experimental-zbb < %s \
22 # RUN: | llvm-objdump --mattr=+experimental-zbb -d -r - \
23 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
25 # With Bitmanip permutation extension:
26 # RUN: llvm-mc %s -triple=riscv64 -mattr=+experimental-zbp -show-encoding \
27 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
28 # RUN: llvm-mc %s -triple=riscv64 -mattr=+experimental-zbp -show-encoding \
29 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
30 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+experimental-zbp < %s \
31 # RUN: | llvm-objdump --mattr=+experimental-zbp -d -r - \
32 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
33 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+experimental-zbp < %s \
34 # RUN: | llvm-objdump --mattr=+experimental-zbp -d -r - \
35 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
37 # CHECK-ASM-AND-OBJ: andn t0, t1, t2
38 # CHECK-ASM: encoding: [0xb3,0x72,0x73,0x40]
40 # CHECK-ASM-AND-OBJ: orn t0, t1, t2
41 # CHECK-ASM: encoding: [0xb3,0x62,0x73,0x40]
43 # CHECK-ASM-AND-OBJ: xnor t0, t1, t2
44 # CHECK-ASM: encoding: [0xb3,0x42,0x73,0x40]
46 # CHECK-ASM-AND-OBJ: rol t0, t1, t2
47 # CHECK-ASM: encoding: [0xb3,0x12,0x73,0x60]
49 # CHECK-ASM-AND-OBJ: ror t0, t1, t2
50 # CHECK-ASM: encoding: [0xb3,0x52,0x73,0x60]
52 # CHECK-ASM-AND-OBJ: rori t0, t1, 31
53 # CHECK-ASM: encoding: [0x93,0x52,0xf3,0x61]
55 # CHECK-ASM-AND-OBJ: rori t0, t1, 0
56 # CHECK-ASM: encoding: [0x93,0x52,0x03,0x60]
58 # CHECK-ASM-AND-OBJ: orc.b t0, t1
59 # CHECK-ASM: encoding: [0x93,0x52,0x73,0x28]