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

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 6 22:33:50 PST 2023


Author: Fangrui Song
Date: 2023-03-06T22:33:43-08:00
New Revision: feb3432a4e9448cee425e610af5b62567a298e2c

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

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

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", at note; note:
+# ERROR: :[[#@LINE+1]]:7: error: unsupported relocation type
+.quad extern-note
+.section .rodata,"a", at progbits; rodata:
+# ERROR: :[[#@LINE+1]]:7: error: unsupported relocation type
+.quad extern-rodata
+.endif
+
 .section .alloc_w,"aw", at progbits; w:
 .quad extern-w
 .quad w-extern


        


More information about the llvm-commits mailing list