File tree Expand file tree Collapse file tree 1 file changed +8
-20
lines changed
Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Original file line number Diff line number Diff line change 1- # RUN: llvm-mc -triple riscv32 -mattr=+experimental-xqcibi,+xandesperf %s -filetype=obj -o %t.o
1+ # RUN: llvm-mc -triple riscv32 %s -filetype=obj -o %t.o
22# RUN: not ld.lld -pie %t.o -o /dev/null 2>&1 | FileCheck %s
33
44 .option exact
55
6- qc.e.bgeui s0, 20 , TARGET
7- # CHECK: error: {{.*}} unknown vendor-specific relocation (193) in vendor namespace "QUALCOMM" against symbol TARGET
8-
9- .global QUALCOMM
10- QUALCOMM:
6+ .global TARGET
7+ TARGET:
118 nop
129
13- qc.e.bgeui s0, 20 , TARGET
14- # CHECK: error: {{.*}} unknown vendor-specific relocation (193) in vendor namespace "QUALCOMM" against symbol TARGET
15-
16- nds.bbc t0, 7 , TARGET
17- # CHECK: error: {{.*}} unknown vendor-specific relocation (241) in vendor namespace "ANDES" against symbol TARGET
18-
19- .global ANDES
20- ANDES:
10+ .global INVALID_VENDOR
11+ .reloc 1f, R_RISCV_VENDOR, INVALID_VENDOR+0
12+ .reloc 1f, R_RISCV_CUSTOM255, TARGET
13+ 1:
2114 nop
2215
23- nds.bbs t0, 7 , TARGET
24- # CHECK: error: {{.*}} unknown vendor-specific relocation (241) in vendor namespace "ANDES" against symbol TARGET
25-
26- .global TARGET
27- TARGET:
28- nop
16+ # CHECK: error: {{.*}} unknown vendor-specific relocation (255) in vendor namespace "INVALID_VENDOR" against symbol TARGET
You can’t perform that action at this time.
0 commit comments