b403b8154de34ff502e6518a6db4065fa95dd7a1
[oota-llvm.git] / test / tools / llvm-objdump / X86 / macho-literal-pointers-x86_64.test
1 # RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __DATA,__litp - | FileCheck %s
2
3 .cstring
4 L1: .asciz "Hello world\n"
5
6 .literal4
7 .align 2
8 L2: .float 4.0
9
10 .literal8
11 .align 3
12 L3: .double 8.0
13
14 .literal16
15 .align 4
16 L4: .long 0x10000016, 0x20000016, 0x30000016, 0x40000016
17
18 .const
19 L5: .asciz "const non-literal string"
20
21 .section __DATA,__litp, literal_pointers
22 .align 3
23 .quad L1
24 .quad L2
25 .quad L3
26 .quad L4
27 .quad L5
28
29 # CHECK: Contents of (__DATA,__litp) section
30 # CHECK: 0000000000000050  __TEXT:__cstring:Hello world\n
31 # CHECK: 0000000000000058  __TEXT:__literal4:0x40800000
32 # CHECK: 0000000000000060  __TEXT:__literal8:0x00000000 0x40200000
33 # CHECK: 0000000000000068  __TEXT:__literal16:0x10000016 0x20000016 0x30000016 0x40000016
34 # CHECK: 0000000000000070  0x30 (not in a literal section)