37 lines · plain
1# RUN: llvm-mc %s -triple=riscv64 -mattr=+zbb -M no-aliases \2# RUN: | FileCheck -check-prefixes=CHECK-S-OBJ-NOALIAS %s3# RUN: llvm-mc %s -triple=riscv64 -mattr=+zbb \4# RUN: | FileCheck -check-prefixes=CHECK-S-OBJ %s5# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+zbb < %s \6# RUN: | llvm-objdump --no-print-imm-hex -d -r -M no-aliases --mattr=+zbb - \7# RUN: | FileCheck -check-prefixes=CHECK-S-OBJ-NOALIAS %s8# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+zbb < %s \9# RUN: | llvm-objdump --no-print-imm-hex -d -r --mattr=+zbb - \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: zext.h t0, t119# CHECK-S-OBJ: zext.h t0, t120zext.h x5, x621 22# CHECK-S-OBJ-NOALIAS: rev8 t0, t123# CHECK-S-OBJ: rev8 t0, t124rev8 x5, x625 26# CHECK-S-OBJ-NOALIAS: orc.b t0, t127# CHECK-S-OBJ: orc.b t0, t128orc.b x5, x629 30# CHECK-S-OBJ-NOALIAS: rori t0, t1, 831# CHECK-S-OBJ: rori t0, t1, 832ror x5, x6, 833 34# CHECK-S-OBJ-NOALIAS: roriw t0, t1, 835# CHECK-S-OBJ: roriw t0, t1, 836rorw x5, x6, 837