1 # With Bitmanip base extension:
2 # RUN: llvm-mc %s -triple=riscv32 -mattr=+zbb -riscv-no-aliases -show-encoding \
3 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
4 # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+zbb < %s \
5 # RUN: | llvm-objdump --mattr=+zbb -M no-aliases -d -r - \
6 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
8 # CHECK-ASM-AND-OBJ: zext.h t0, t1
9 # CHECK-ASM: encoding: [0xb3,0x42,0x03,0x08]
11 # CHECK-ASM-AND-OBJ: rori t0, t1, 31
12 # CHECK-ASM: encoding: [0x93,0x52,0xf3,0x61]
14 # CHECK-ASM-AND-OBJ: rori t0, t1, 0
15 # CHECK-ASM: encoding: [0x93,0x52,0x03,0x60]
17 # CHECK-ASM-AND-OBJ: rev8 t0, t1
18 # CHECK-ASM: encoding: [0x93,0x52,0x83,0x69]