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