[MC] Don't use the architecture to govern which object file format to use
[oota-llvm.git] / test / MC / COFF / secrel-variant.s
1 // COFF section-relative relocations
2
3 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | llvm-readobj -r | FileCheck %s
4
5 .data
6 values:
7     .long 1
8     .long 0
9
10 .text
11     movq    values@SECREL32(%rax), %rcx
12     movq    values@SECREL32+8(%rax), %rax
13
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: ]