Author: Fangrui Song
Date: 2023-03-28T08:54:58+02:00
New Revision: ee1493c713d69bcc9329923c132f8befd79dcc65

URL: 
https://github.com/llvm/llvm-project/commit/ee1493c713d69bcc9329923c132f8befd79dcc65
DIFF: 
https://github.com/llvm/llvm-project/commit/ee1493c713d69bcc9329923c132f8befd79dcc65.diff

LOG: [test] Improve MC/RISCV/riscv64-64b-pcrel.s to demonstrate regression due 
to D132262

(cherry picked from commit feb3432a4e9448cee425e610af5b62567a298e2c)

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/test/MC/RISCV/riscv64-64b-pcrel.s 
b/llvm/test/MC/RISCV/riscv64-64b-pcrel.s
index 51df17a4447e..ebdacc0785c9 100644
--- a/llvm/test/MC/RISCV/riscv64-64b-pcrel.s
+++ b/llvm/test/MC/RISCV/riscv64-64b-pcrel.s
@@ -24,6 +24,15 @@
 # CHECK-NEXT:   }
 # CHECK-NEXT: ]
 
+.ifdef ERR
+.section .note,"a",@note; note:
+# ERROR: :[[#@LINE+1]]:7: error: unsupported relocation type
+.quad extern-note
+.section .rodata,"a",@progbits; rodata:
+# ERROR: :[[#@LINE+1]]:7: error: unsupported relocation type
+.quad extern-rodata
+.endif
+
 .section .alloc_w,"aw",@progbits; w:
 .quad extern-w
 .quad w-extern


        
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to