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
7
8.literal4
9.float 2.5
10.float 8.25
11.long 0x7f800000
12.long 0xff800000
13.long 0x7fc00000
14.long 0x7f800001
15
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
23
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
27
28.literal8
29.double 2.5
30.double 8.25
31.long 0
32.long 0x7ff00000
33.long 0
34.long 0xfff00000
35.long 0
36.long 0x7ff80000
37.long 1
38.long 0x7ff00000
39
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
47
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
52
53.literal16
54.long 1
55.long 2
56.long 3
57.long 4
58
59# CHECK-LIT16: Contents of (__TEXT,__literal16) section
60# CHECK-LIT16: 0000000000000050  0x00000001 0x00000002 0x00000003 0x00000004
61
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
64