[HLSL] Implement RWBuffer::operator[] via __builtin_hlsl_resource_getpointer (#117017)
[llvm-project.git] / llvm / test / MC / COFF / assoc-private.s
blobb85b73bc2340b6836e404de97047e4287d3341c3
1 # RUN: llvm-mc -triple x86_64-pc-win32 -filetype=obj %s | llvm-objdump - -h -t | FileCheck %s
3 # PR38607: We assemble this, and make .CRT$XCU comdat with .rdata even though
4 # .rdata isn't comdat. It's not clear what the semantics are, but we assemble
5 # it anyway.
7 # CHECK: Sections:
8 # CHECK: Idx Name Size VMA Type
9 # CHECK: 3 .rdata 00000004 0000000000000000 DATA
10 # CHECK: 4 .CRT$XCU 00000008 0000000000000000 DATA
11 # CHECK: SYMBOL TABLE:
12 # CHECK: [ 6](sec 4)(fl 0x00)(ty 0)(scl 3) (nx 1) 0x00000000 .rdata
13 # CHECK: AUX scnlen 0x4 nreloc 0 nlnno 0 checksum 0x0 assoc 4 comdat 0
14 # CHECK: [ 8](sec 5)(fl 0x00)(ty 0)(scl 3) (nx 1) 0x00000000 .CRT$XCU
15 # CHECK: AUX scnlen 0x8 nreloc 1 nlnno 0 checksum 0x0 assoc 4 comdat 5
16 # CHECK: [10](sec 0)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 register_x
18 .section .rdata,"dr"
19 .p2align 2 # @x
20 .Lprivate:
21 .long 0 # 0x0
23 .section .CRT$XCU,"dr",associative,.Lprivate
24 .p2align 3
25 .quad register_x