Skip to content

Commit ee1493c

Browse files
MaskRaytru
authored andcommitted
[test] Improve MC/RISCV/riscv64-64b-pcrel.s to demonstrate regression due to D132262
(cherry picked from commit feb3432)
1 parent 4f243f1 commit ee1493c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

llvm/test/MC/RISCV/riscv64-64b-pcrel.s

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424
# CHECK-NEXT: }
2525
# CHECK-NEXT: ]
2626

27+
.ifdef ERR
28+
.section .note,"a",@note; note:
29+
# ERROR: :[[#@LINE+1]]:7: error: unsupported relocation type
30+
.quad extern-note
31+
.section .rodata,"a",@progbits; rodata:
32+
# ERROR: :[[#@LINE+1]]:7: error: unsupported relocation type
33+
.quad extern-rodata
34+
.endif
35+
2736
.section .alloc_w,"aw",@progbits; w:
2837
.quad extern-w
2938
.quad w-extern

0 commit comments

Comments
 (0)