1# With B extension: 2# RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-b -show-encoding \ 3# RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s 4# RUN: llvm-mc -filetype=obj -triple=riscv32 -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 ternary extension: 9# RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-zbt -show-encoding \ 10# RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s 11# RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+experimental-zbt < %s \ 12# RUN: | llvm-objdump --mattr=+experimental-zbt -d -r - \ 13# RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s 14 15# CHECK-ASM-AND-OBJ: cmix t0, t1, t2, t3 16# CHECK-ASM: encoding: [0xb3,0x92,0x63,0xe6] 17cmix t0, t1, t2, t3 18# CHECK-ASM-AND-OBJ: cmov t0, t1, t2, t3 19# CHECK-ASM: encoding: [0xb3,0xd2,0x63,0xe6] 20cmov t0, t1, t2, t3 21# CHECK-ASM-AND-OBJ: fsl t0, t1, t2, t3 22# CHECK-ASM: encoding: [0xb3,0x12,0xc3,0x3d] 23fsl t0, t1, t2, t3 24# CHECK-ASM-AND-OBJ: fsr t0, t1, t2, t3 25# CHECK-ASM: encoding: [0xb3,0x52,0xc3,0x3d] 26fsr t0, t1, t2, t3 27# CHECK-ASM-AND-OBJ: fsri t0, t1, t2, 0 28# CHECK-ASM: encoding: [0x93,0x52,0x03,0x3c] 29fsri t0, t1, t2, 0 30