llvm/llvm/test/MC/RISCV/rv32xtheadmac-valid.s

# RUN: llvm-mc %s -triple=riscv32 -mattr=+xtheadmac -show-encoding \
# RUN:     | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
# RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+xtheadmac < %s \
# RUN:     | llvm-objdump --mattr=+xtheadmac -d -r - \
# RUN:     | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s

# CHECK-ASM-AND-OBJ: th.mula a0, a1, a2
# CHECK-ASM: encoding: [0x0b,0x95,0xc5,0x20]
th.mula  a0, a1, a2

# CHECK-ASM-AND-OBJ: th.mulah a0, a1, a2
# CHECK-ASM: encoding: [0x0b,0x95,0xc5,0x28]
th.mulah a0, a1, a2

# CHECK-ASM-AND-OBJ: th.muls a0, a1, a2
# CHECK-ASM: encoding: [0x0b,0x95,0xc5,0x22]
th.muls	 a0, a1, a2

# CHECK-ASM-AND-OBJ: th.mulsh a0, a1, a2
# CHECK-ASM: encoding: [0x0b,0x95,0xc5,0x2a]
th.mulsh a0, a1, a2