Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / RISCV / rv32zba-valid.s
blob08e6e7cdabb5d57b034810356d6fd0e02df31af2
1 # With Zba extension:
2 # RUN: llvm-mc %s -triple=riscv32 -mattr=+zba -show-encoding \
3 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
4 # RUN: llvm-mc %s -triple=riscv64 -mattr=+zba -show-encoding \
5 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
6 # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+zba < %s \
7 # RUN: | llvm-objdump --mattr=+zba -d -r - \
8 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
9 # RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+zba < %s \
10 # RUN: | llvm-objdump --mattr=+zba -d -r - \
11 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
13 # CHECK-ASM-AND-OBJ: sh1add t0, t1, t2
14 # CHECK-ASM: encoding: [0xb3,0x22,0x73,0x20]
15 sh1add t0, t1, t2
16 # CHECK-ASM-AND-OBJ: sh2add t0, t1, t2
17 # CHECK-ASM: encoding: [0xb3,0x42,0x73,0x20]
18 sh2add t0, t1, t2
19 # CHECK-ASM-AND-OBJ: sh3add t0, t1, t2
20 # CHECK-ASM: encoding: [0xb3,0x62,0x73,0x20]
21 sh3add t0, t1, t2