Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / RISCV / rv32zbb-only-valid.s
blob3668b13fc22f40c6a6d218e621e60fd48bfb4719
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]
10 zext.h t0, t1
11 # CHECK-ASM-AND-OBJ: rori t0, t1, 31
12 # CHECK-ASM: encoding: [0x93,0x52,0xf3,0x61]
13 rori t0, t1, 31
14 # CHECK-ASM-AND-OBJ: rori t0, t1, 0
15 # CHECK-ASM: encoding: [0x93,0x52,0x03,0x60]
16 rori t0, t1, 0
17 # CHECK-ASM-AND-OBJ: rev8 t0, t1
18 # CHECK-ASM: encoding: [0x93,0x52,0x83,0x69]
19 rev8 t0, t1