1 # RUN: llvm-mc < %s -triple i386-apple-darwin -filetype=obj | llvm-objdump -m -section __DATA,__litp - | FileCheck %s 2 # RUN: llvm-mc < %s -triple i386-apple-darwin -filetype=obj | llvm-objdump -m -section __DATA,__litp -non-verbose - | FileCheck %s -check-prefix=NON-VERBOSE 3 4 .cstring 5 L1: .asciz "Hello world\n" 6 7 .literal4 8 .align 2 9 L2: .float 4.0 10 11 .literal8 12 .align 3 13 L3: .double 8.0 14 15 .literal16 16 .align 4 17 L4: .long 0x10000016, 0x20000016, 0x30000016, 0x40000016 18 19 .const 20 L5: .asciz "const non-literal string" 21 22 .section __DATA,__litp, literal_pointers 23 .align 2 24 .long L1 25 .long L2 26 .long L3 27 .long L4 28 .long L5 29 30 # CHECK: Contents of (__DATA,__litp) section 31 # CHECK: 0000004c __TEXT:__cstring:Hello world\n 32 # CHECK: 00000050 __TEXT:__literal4:0x40800000 33 # CHECK: 00000054 __TEXT:__literal8:0x00000000 0x40200000 34 # CHECK: 00000058 __TEXT:__literal16:0x10000016 0x20000016 0x30000016 0x40000016 35 # CHECK: 0000005c 0x30 (not in a literal section) 36 37 # NON-VERBOSE: Contents of (__DATA,__litp) section 38 # NON-VERBOSE: 0000004c 00 00 00 00 10 00 00 00 18 00 00 00 20 00 00 00 39 # NON-VERBOSE: 0000005c 30 00 00 00 40