41 lines · plain
1# RUN: llvm-mc < %s --triple x86_64-apple-darwin -filetype=obj | llvm-objdump --macho --section __DATA,__litp - | FileCheck %s2# RUN: llvm-mc < %s --triple x86_64-apple-darwin -filetype=obj | llvm-objdump --macho --section __DATA,__litp --non-verbose - | FileCheck %s --check-prefix=NON-VERBOSE3 4.cstring5L1: .asciz "Hello world\n"6 7.literal48.align 29L2: .float 4.010 11.literal812.align 313L3: .double 8.014 15.literal1616.align 417L4: .long 0x10000016, 0x20000016, 0x30000016, 0x4000001618 19.const20L5: .asciz "const non-literal string"21 22.section __DATA,__litp, literal_pointers23.align 324.quad L125.quad L226.quad L327.quad L428.quad L529 30# CHECK: Contents of (__DATA,__litp) section31# CHECK: 0000000000000050 __TEXT:__cstring:Hello world\n32# CHECK: 0000000000000058 __TEXT:__literal4:0x4080000033# CHECK: 0000000000000060 __TEXT:__literal8:0x00000000 0x4020000034# CHECK: 0000000000000068 __TEXT:__literal16:0x10000016 0x20000016 0x30000016 0x4000001635# CHECK: 0000000000000070 0x30 (not in a literal section)36 37# NON-VERBOSE: Contents of (__DATA,__litp) section38# NON-VERBOSE: 0000000000000050 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 39# NON-VERBOSE: 0000000000000060 18 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 40# NON-VERBOSE: 0000000000000070 30 00 00 00 00 00 00 00 41