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]
16 # CHECK-ASM-AND-OBJ: sh2add t0, t1, t2
17 # CHECK-ASM: encoding: [0xb3,0x42,0x73,0x20]
19 # CHECK-ASM-AND-OBJ: sh3add t0, t1, t2
20 # CHECK-ASM: encoding: [0xb3,0x62,0x73,0x20]