1 # With Bitmanip base extension:
2 # RUN: llvm-mc %s -triple=riscv32 -mattr=+xtheadmempair -show-encoding \
3 # RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
4 # RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+xtheadmempair < %s \
5 # RUN: | llvm-objdump --mattr=+xtheadmempair -d -r - \
6 # RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s
8 # CHECK-ASM-AND-OBJ: th.lwd
9 # CHECK-ASM: encoding: [0x0b,0x45,0xb6,0xe2]
10 th.lwd a0
, a1
, (a2
), 1, 3
12 # CHECK-ASM-AND-OBJ: th.lwud
13 # CHECK-ASM: encoding: [0x0b,0x45,0xb6,0xf4]
14 th.lwud a0
, a1
, (a2
), 2, 3
16 # CHECK-ASM-AND-OBJ: th.swd
17 # CHECK-ASM: encoding: [0x0b,0x55,0xb6,0xe0]
18 th.swd a0
, a1
, (a2
), 0, 3