[memprof] Move YAML support to MemProfYAML.h (NFC) (#119515)
[llvm-project.git] / llvm / test / MC / COFF / secrel-variant.s
blob0382018d807628435a57f16c46007004fca6959e
1 // COFF section-relative relocations
3 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj -r - | FileCheck %s
5 .data
6 values:
7 .long 1
8 .long 0
10 .text
11 movq values@SECREL32(%rax), %rcx
12 movq values@SECREL32+8(%rax), %rax
14 // CHECK: Relocations [
15 // CHECK-NEXT: Section (1) .text {
16 // CHECK-NEXT: 0x3 IMAGE_REL_AMD64_SECREL values
17 // CHECK-NEXT: 0xA IMAGE_REL_AMD64_SECREL values
18 // CHECK-NEXT: }
19 // CHECK-NEXT: ]