1 # RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __TEXT,__literal4 - | FileCheck %s -check-prefix=CHECK-LIT4
2 # RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __TEXT,__literal4 -non-verbose - | FileCheck %s -check-prefix=NON-VERBOSE-LIT4
3 # RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __TEXT,__literal8 - | FileCheck %s -check-prefix=CHECK-LIT8
4 # RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __TEXT,__literal8 -non-verbose - | FileCheck %s -check-prefix=NON-VERBOSE-LIT8
5 # RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __TEXT,__literal16 - | FileCheck %s -check-prefix=CHECK-LIT16
6 # RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __TEXT,__literal16 -non-verbose - | FileCheck %s -check-prefix=NON-VERBOSE-LIT16
16 # CHECK-LIT4: Contents of (__TEXT,__literal4) section
17 # CHECK-LIT4: 0000000000000000 0x40200000
18 # CHECK-LIT4: 0000000000000004 0x41040000
19 # CHECK-LIT4: 0000000000000008 0x7f800000
20 # CHECK-LIT4: 000000000000000c 0xff800000
21 # CHECK-LIT4: 0000000000000010 0x7fc00000
22 # CHECK-LIT4: 0000000000000014 0x7f800001
24 # NON-VERBOSE-LIT4: Contents of (__TEXT,__literal4) section
25 # NON-VERBOSE-LIT4: 0000000000000000 00 00 20 40 00 00 04 41 00 00 80 7f 00 00 80 ff
26 # NON-VERBOSE-LIT4: 0000000000000010 00 00 c0 7f 01 00 80 7f
40 # CHECK-LIT8: Contents of (__TEXT,__literal8) section
41 # CHECK-LIT8: 0000000000000018 0x00000000 0x40040000
42 # CHECK-LIT8: 0000000000000020 0x00000000 0x40208000
43 # CHECK-LIT8: 0000000000000028 0x00000000 0x7ff00000
44 # CHECK-LIT8: 0000000000000030 0x00000000 0xfff00000
45 # CHECK-LIT8: 0000000000000038 0x00000000 0x7ff80000
46 # CHECK-LIT8: 0000000000000040 0x00000001 0x7ff00000
48 # NON-VERBOSE-LIT8: Contents of (__TEXT,__literal8) section
49 # NON-VERBOSE-LIT8: 0000000000000018 00 00 00 00 00 00 04 40 00 00 00 00 00 80 20 40
50 # NON-VERBOSE-LIT8: 0000000000000028 00 00 00 00 00 00 f0 7f 00 00 00 00 00 00 f0 ff
51 # NON-VERBOSE-LIT8: 0000000000000038 00 00 00 00 00 00 f8 7f 01 00 00 00 00 00 f0 7f
59 # CHECK-LIT16: Contents of (__TEXT,__literal16) section
60 # CHECK-LIT16: 0000000000000050 0x00000001 0x00000002 0x00000003 0x00000004
62 # NON-VERBOSE-LIT16: Contents of (__TEXT,__literal16) section
63 # NON-VERBOSE-LIT16: 0000000000000050 01 00 00 00 02 00 00 00 03 00 00 00 04 00 00 00