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

Tobias Hieta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Mar 27 23:55:51 PDT 2023


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", 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-branch-commits mailing list