Skip to content

Commit f8664fd

Browse files
committed
Use a fake vendor relocation in the testcase.
1 parent d27799a commit f8664fd

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed
Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,16 @@
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

0 commit comments

Comments
 (0)