[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / MachO / data.s
blob299e55e88e9a452a623a459e5af63ffed2fbcb8f
1 // RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --macho-segment | FileCheck %s
3 .data
4 .ascii "hello"
5 .byte 0xAB
6 .short 0xABCD
7 .long 0xABCDABCD
8 .quad 0xABCDABCDABCDABCD
9 .org 30
10 .long 0xF000 // 34
11 .p2align 3, 0xAB // 40 (0xAB * 6)
12 .short 0 // 42
13 .p2alignw 3, 0xABCD // 48 (0xABCD * 2)
14 .short 0 // 50
15 .p2alignw 3, 0xABCD, 5 // 50
17 // FIXME: Dump contents, so we can check those too.
19 // CHECK: File: <stdin>
20 // CHECK: Format: Mach-O 32-bit i386
21 // CHECK: Arch: i386
22 // CHECK: AddressSize: 32bit
23 // CHECK: MachHeader {
24 // CHECK: Magic: Magic (0xFEEDFACE)
25 // CHECK: CpuType: X86 (0x7)
26 // CHECK: CpuSubType: CPU_SUBTYPE_I386_ALL (0x3)
27 // CHECK: FileType: Relocatable (0x1)
28 // CHECK: NumOfLoadCommands: 2
29 // CHECK: SizeOfLoadCommands: 208
30 // CHECK: Flags [ (0x0)
31 // CHECK: ]
32 // CHECK: }
33 // CHECK: Sections [
34 // CHECK: Section {
35 // CHECK: Index: 0
36 // CHECK: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
37 // CHECK: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
38 // CHECK: Address: 0x0
39 // CHECK: Size: 0x0
40 // CHECK: Offset: 236
41 // CHECK: Alignment: 0
42 // CHECK: RelocationOffset: 0x0
43 // CHECK: RelocationCount: 0
44 // CHECK: Type: Regular (0x0)
45 // CHECK: Attributes [ (0x800000)
46 // CHECK: PureInstructions (0x800000)
47 // CHECK: ]
48 // CHECK: Reserved1: 0x0
49 // CHECK: Reserved2: 0x0
50 // CHECK: }
51 // CHECK: Section {
52 // CHECK: Index: 1
53 // CHECK: Name: __data (5F 5F 64 61 74 61 00 00 00 00 00 00 00 00 00 00)
54 // CHECK: Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
55 // CHECK: Address: 0x0
56 // CHECK: Size: 0x32
57 // CHECK: Offset: 236
58 // CHECK: Alignment: 3
59 // CHECK: RelocationOffset: 0x0
60 // CHECK: RelocationCount: 0
61 // CHECK: Type: Regular (0x0)
62 // CHECK: Attributes [ (0x0)
63 // CHECK: ]
64 // CHECK: Reserved1: 0x0
65 // CHECK: Reserved2: 0x0
66 // CHECK: }
67 // CHECK: ]
68 // CHECK: Segment {
69 // CHECK: Cmd: LC_SEGMENT
70 // CHECK: Name:
71 // CHECK: Size: 192
72 // CHECK: vmaddr: 0x0
73 // CHECK: vmsize: 0x32
74 // CHECK: fileoff: 236
75 // CHECK: filesize: 50
76 // CHECK: maxprot: rwx
77 // CHECK: initprot: rwx
78 // CHECK: nsects: 2
79 // CHECK: flags: 0x0
80 // CHECK: }