summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/test/MC/COFF/pr23025.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/MC/COFF/pr23025.s b/llvm/test/MC/COFF/pr23025.s
new file mode 100644
index 00000000000..35bf6c7fb1d
--- /dev/null
+++ b/llvm/test/MC/COFF/pr23025.s
@@ -0,0 +1,18 @@
+// RUN: llvm-mc -filetype=obj -triple x86_64-pc-windows-msvc < %s | llvm-readobj -r | FileCheck %s
+
+// CHECK: Relocations [
+// CHECK-NEXT: Section {{.*}} .text {
+// CHECK-NEXT: 0x3 IMAGE_REL_AMD64_REL32 zed
+// CHECK-NEXT: }
+// CHECK-NEXT: ]
+
+foo:
+ leaq zed(%rip), %rax
+ retq
+
+ .section .rdata,"dr",discard,zed
+Lbar:
+ .zero 2
+
+ .globl zed
+zed = Lbar+1
OpenPOWER on IntegriCloud