================ @@ -0,0 +1,105 @@ +# XAndesPerf - Andes Performance Extension +# RUN: llvm-mc %s -triple=riscv32 -mattr=+xandesperf -show-encoding \ +# RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s +# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+xandesperf < %s \ +# RUN: | llvm-objdump --mattr=+xandesperf -M no-aliases --no-print-imm-hex -d -r - \ +# RUN: | FileCheck -check-prefixes=CHECK-OBJ,CHECK-OBJ32,CHECK-ASM-AND-OBJ %s +# RUN: llvm-mc %s -triple=riscv64 -mattr=+xandesperf -show-encoding \ +# RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s +# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+xandesperf < %s \ +# RUN: | llvm-objdump --mattr=+xandesperf -M no-aliases --no-print-imm-hex -d -r - \ +# RUN: | FileCheck -check-prefixes=CHECK-OBJ,CHECK-OBJ64,CHECK-ASM-AND-OBJ %s + +# CHECK-OBJ: nds.bbc a0, 16, 0x200 +# CHECK-ASM: nds.bbc a0, 16, 512 +# CHECK-ASM: encoding: [0x5b,0x70,0x05,0x21] +nds.bbc a0, 16, 512 + +# CHECK-OBJ32: nds.bbs a1, 21, 0xffffff04 +# CHECK-OBJ64: nds.bbs a1, 21, 0xffffffffffffff04 +# CHECK-ASM: nds.bbs a1, 21, -256 +# CHECK-ASM: encoding: [0x5b,0xf0,0x55,0xf1] +nds.bbs a1, 21, -256 + +# CHECK-OBJ: beqc t0, 23, 0x108 +# CHECK-ASM: beqc t0, 23, 256 +# CHECK-ASM: encoding: [0x5b,0xd0,0x72,0x11] +nds.beqc t0, 23, 256 + +# CHECK-OBJ32: bnec t1, 9, 0xffffff8c +# CHECK-OBJ64: bnec t1, 9, 0xffffffffffffff8c +# CHECK-ASM: bnec t1, 9, -128 ---------------- kito-cheng wrote:
`nds.` https://github.com/llvm/llvm-project/pull/135110 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits