[HLSL] Implement RWBuffer::operator[] via __builtin_hlsl_resource_getpointer (#117017)
[llvm-project.git] / llvm / test / MC / COFF / pr23025.s
blob19ce8a014973f4057735a5b2d94572a2124b0f65
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-windows-msvc < %s | llvm-readobj -r - | FileCheck %s
3 // CHECK: Relocations [
4 // CHECK-NEXT: Section {{.*}} .text {
5 // CHECK-NEXT: 0x3 IMAGE_REL_AMD64_REL32 zed
6 // CHECK-NEXT: 0xA IMAGE_REL_AMD64_REL32 zed2
7 // CHECK-NEXT: }
8 // CHECK-NEXT: ]
10 foo:
11 leaq zed(%rip), %rax
12 leaq zed2(%rip), %rax
13 retq
15 .section .rdata,"dr",discard,zed
16 Lbar:
17 .zero 2
19 .globl zed
20 zed = Lbar+1
22 .globl zed2
23 zed2 = Lbar