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 single bit extension: 9# RUN: llvm-mc %s -triple=riscv32 -mattr=+experimental-zbs -show-encoding \ 10# RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s 11# RUN: llvm-mc -filetype=obj -triple=riscv32 -mattr=+experimental-zbs < %s \ 12# RUN: | llvm-objdump --mattr=+experimental-zbs -d -r - \ 13# RUN: | FileCheck --check-prefix=CHECK-ASM-AND-OBJ %s 14 15# CHECK-ASM-AND-OBJ: sbclr t0, t1, t2 16# CHECK-ASM: encoding: [0xb3,0x12,0x73,0x48] 17sbclr t0, t1, t2 18# CHECK-ASM-AND-OBJ: sbset t0, t1, t2 19# CHECK-ASM: encoding: [0xb3,0x12,0x73,0x28] 20sbset t0, t1, t2 21# CHECK-ASM-AND-OBJ: sbinv t0, t1, t2 22# CHECK-ASM: encoding: [0xb3,0x12,0x73,0x68] 23sbinv t0, t1, t2 24# CHECK-ASM-AND-OBJ: sbext t0, t1, t2 25# CHECK-ASM: encoding: [0xb3,0x52,0x73,0x48] 26sbext t0, t1, t2 27# CHECK-ASM-AND-OBJ: sbclri t0, t1, 1 28# CHECK-ASM: encoding: [0x93,0x12,0x13,0x48] 29sbclri t0, t1, 1 30# CHECK-ASM-AND-OBJ: sbseti t0, t1, 1 31# CHECK-ASM: encoding: [0x93,0x12,0x13,0x28] 32sbseti t0, t1, 1 33# CHECK-ASM-AND-OBJ: sbinvi t0, t1, 1 34# CHECK-ASM: encoding: [0x93,0x12,0x13,0x68] 35sbinvi t0, t1, 1 36# CHECK-ASM-AND-OBJ: sbexti t0, t1, 1 37# CHECK-ASM: encoding: [0x93,0x52,0x13,0x48] 38sbexti t0, t1, 1 39