brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 9595f21 Raw
53 lines · plain
1# RUN: llvm-mc -triple riscv32 -mattr=+experimental-xqcibi,+xandesperf %s \2# RUN:     -filetype=obj -o - \3# RUN:     | llvm-readelf -sr - \4# RUN:     | FileCheck %s5 6 7## This checks that the vendor identifier symbols required for vendor8## relocations do not interfere with symbols with identical names that9## are written in assembly.10 11  .option exact12 13  qc.e.bgeui s0, 20, QUALCOMM14 15  .global QUALCOMM16QUALCOMM:17  nop18 19  qc.e.bgeui s0, 20, QUALCOMM20 21  nds.bbc t0, 7, ANDES22 23  .global ANDES24ANDES:25  nop26 27  nds.bbs t0, 7, ANDES28 29 30# CHECK-LABEL: Relocation section '.rela.text'31## Note the different values for the "Sym. Value" Field32# CHECK: R_RISCV_VENDOR    00000000 QUALCOMM + 033# CHECK: R_RISCV_CUSTOM193 00000006 QUALCOMM + 034# CHECK: R_RISCV_VENDOR    00000000 QUALCOMM + 035# CHECK: R_RISCV_CUSTOM193 00000006 QUALCOMM + 036# CHECK: R_RISCV_VENDOR    00000000 ANDES + 037# CHECK: R_RISCV_CUSTOM241 00000014 ANDES + 038# CHECK: R_RISCV_VENDOR    00000000 ANDES + 039# CHECK: R_RISCV_CUSTOM241 00000014 ANDES + 040 41 42# CHECK-LABEL: Symbol table '.symtab'43# CHECK-NOT: QUALCOMM44# CHECK-NOT: ANDES45# CHECK: 00000000 0 NOTYPE  LOCAL  DEFAULT ABS QUALCOMM46# CHECK: 00000000 0 NOTYPE  LOCAL  DEFAULT ABS ANDES47# CHECK-NOT: QUALCOMM48# CHECK-NOT: ANDES49# CHECK: 00000006 0 NOTYPE  GLOBAL DEFAULT   2 QUALCOMM50# CHECK: 00000014 0 NOTYPE  GLOBAL DEFAULT   2 ANDES51# CHECK-NOT: QUALCOMM52# CHECK-NOT: ANDES53