1# With B extension: 2# RUN: llvm-mc %s -triple=riscv64 -mattr=+experimental-b -show-encoding \ 3# RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s 4# RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+experimental-b < %s \ 5# RUN: | llvm-objdump --mattr=+experimental-b -d -r - \ 6# RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s 7 8# With Bitmanip matix extension: 9# RUN: llvm-mc %s -triple=riscv64 -mattr=+experimental-zbm -show-encoding \ 10# RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s 11# RUN: llvm-mc -filetype=obj -triple=riscv64 -mattr=+experimental-zbm < %s \ 12# RUN: | llvm-objdump --mattr=+experimental-zbm -d -r - \ 13# RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s 14 15# CHECK-ASM-AND-OBJ: bmatflip t0, t1 16# CHECK-ASM: encoding: [0x93,0x12,0x33,0x60] 17bmatflip t0, t1 18# CHECK-ASM-AND-OBJ: bmator t0, t1, t2 19# CHECK-ASM: encoding: [0xb3,0x32,0x73,0x08] 20bmator t0, t1, t2 21# CHECK-ASM-AND-OBJ: bmatxor t0, t1, t2 22# CHECK-ASM: encoding: [0xb3,0x32,0x73,0x48] 23bmatxor t0, t1, t2 24