brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 60599c5 Raw
37 lines · plain
1# RUN: llvm-mc %s -triple=riscv32 -mattr=+zbs -M no-aliases \2# RUN:     | FileCheck -check-prefixes=CHECK-S-OBJ-NOALIAS %s3# RUN: llvm-mc %s -triple=riscv32 -mattr=+zbs \4# RUN:     | FileCheck -check-prefixes=CHECK-S-OBJ %s5# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+zbs < %s \6# RUN:     | llvm-objdump --no-print-imm-hex -d -r -M no-aliases --mattr=+zbs - \7# RUN:     | FileCheck -check-prefixes=CHECK-S-OBJ-NOALIAS %s8# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+zbs < %s \9# RUN:     | llvm-objdump --no-print-imm-hex -d -r --mattr=+zbs - \10# RUN:     | FileCheck -check-prefixes=CHECK-S-OBJ %s11 12# The following check prefixes are used in this test:13# CHECK-S-OBJ            Match both the .s and objdumped object output with14#                        aliases enabled15# CHECK-S-OBJ-NOALIAS    Match both the .s and objdumped object output with16#                        aliases disabled17 18# CHECK-S-OBJ-NOALIAS: bseti t0, t1, 819# CHECK-S-OBJ: bseti t0, t1, 820bset x5, x6, 821 22# CHECK-S-OBJ-NOALIAS: bclri t0, t1, 823# CHECK-S-OBJ: bclri t0, t1, 824bclr x5, x6, 825 26# CHECK-S-OBJ-NOALIAS: binvi t0, t1, 827# CHECK-S-OBJ: binvi t0, t1, 828binv x5, x6, 829 30# CHECK-S-OBJ-NOALIAS: bexti t0, t1, 831# CHECK-S-OBJ: bexti t0, t1, 832bext x5, x6, 833 34# CHECK-S-OBJ-NOALIAS: bseti t2, zero, 1135# CHECK-S-OBJ: bseti t2, zero, 1136li x7, 204837