• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# With B extension:
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
7
8# With Bitmanip permutation extension:
9# RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-zbp -show-encoding \
10# RUN:     | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
11# RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+experimental-zbp < %s \
12# RUN:     | llvm-objdump --mattr=+experimental-zbp -d -r - \
13# RUN:     | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
14
15# CHECK-ASM-AND-OBJ: gorc t0, t1, t2
16# CHECK-ASM: encoding: [0xb3,0x52,0x73,0x28]
17gorc t0, t1, t2
18# CHECK-ASM-AND-OBJ: grev t0, t1, t2
19# CHECK-ASM: encoding: [0xb3,0x52,0x73,0x68]
20grev t0, t1, t2
21# CHECK-ASM-AND-OBJ: gorci t0, t1, 0
22# CHECK-ASM: encoding: [0x93,0x52,0x03,0x28]
23gorci t0, t1, 0
24# CHECK-ASM-AND-OBJ: grevi t0, t1, 0
25# CHECK-ASM: encoding: [0x93,0x52,0x03,0x68]
26grevi t0, t1, 0
27# CHECK-ASM-AND-OBJ: shfl t0, t1, t2
28# CHECK-ASM: encoding: [0xb3,0x12,0x73,0x08]
29shfl t0, t1, t2
30# CHECK-ASM-AND-OBJ: unshfl t0, t1, t2
31# CHECK-ASM: encoding: [0xb3,0x52,0x73,0x08]
32unshfl t0, t1, t2
33# CHECK-ASM-AND-OBJ: shfli t0, t1, 0
34# CHECK-ASM: encoding: [0x93,0x12,0x03,0x08]
35shfli t0, t1, 0
36# CHECK-ASM-AND-OBJ: unshfli t0, t1, 0
37# CHECK-ASM: encoding: [0x93,0x52,0x03,0x08]
38unshfli t0, t1, 0
39