37 lines · plain
1# RUN: llvm-mc -triple riscv32 -mattr=+xandesperf -M no-aliases < %s -show-encoding \2# RUN: | FileCheck -check-prefix=ASM %s3# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+xandesperf < %s \4# RUN: | llvm-objdump -dr --mattr=+xandesperf - \5# RUN: | FileCheck -check-prefix=OBJ %s6# RUN: llvm-mc -triple riscv64 -mattr=+xandesperf -M no-aliases < %s -show-encoding \7# RUN: | FileCheck -check-prefix=ASM %s8# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+xandesperf < %s \9# RUN: | llvm-objdump -dr --mattr=+xandesperf - \10# RUN: | FileCheck -check-prefix=OBJ %s11 12.long foo13 14# ASM: nds.bbc t0, 7, foo15# OBJ: nds.bbc t0, 0x7, 0x4 <.text+0x4>16# OBJ-NEXT: R_RISCV_VENDOR ANDES{{$}}17# OBJ-NEXT: R_RISCV_CUSTOM241 foo{{$}}18nds.bbc t0, 7, foo19 20# ASM: nds.bbs t0, 7, foo21# OBJ-NEXT: nds.bbs t0, 0x7, 0x8 <.text+0x8>22# OBJ-NEXT: R_RISCV_VENDOR ANDES{{$}}23# OBJ-NEXT: R_RISCV_CUSTOM241 foo{{$}}24nds.bbs t0, 7, foo25 26# ASM: nds.beqc t0, 7, foo27# OBJ-NEXT: nds.beqc t0, 0x7, 0xc <.text+0xc>28# OBJ-NEXT: R_RISCV_VENDOR ANDES{{$}}29# OBJ-NEXT: R_RISCV_CUSTOM241 foo{{$}}30nds.beqc t0, 7, foo31 32# ASM: nds.bnec t0, 7, foo33# OBJ-NEXT: nds.bnec t0, 0x7, 0x10 <.text+0x10>34# OBJ-NEXT: R_RISCV_VENDOR ANDES{{$}}35# OBJ-NEXT: R_RISCV_CUSTOM241 foo{{$}}36nds.bnec t0, 7, foo37