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]
11 # CHECK-ASM-AND-OBJ: add.uw t0, t1, t2
12 # CHECK-ASM: encoding: [0xbb,0x02,0x73,0x08]
14 # CHECK-ASM-AND-OBJ: sh1add.uw t0, t1, t2
15 # CHECK-ASM: encoding: [0xbb,0x22,0x73,0x20]
17 # CHECK-ASM-AND-OBJ: sh2add.uw t0, t1, t2
18 # CHECK-ASM: encoding: [0xbb,0x42,0x73,0x20]
20 # CHECK-ASM-AND-OBJ: sh3add.uw t0, t1, t2
21 # CHECK-ASM: encoding: [0xbb,0x62,0x73,0x20]