]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/literals-labels/literals.s
1fde088d330f5a4834504aa93d60f19ab874b308
[apple/ld64.git] / unit-tests / test-cases / literals-labels / literals.s
1 /*
2 * Copyright (c) 2010 Apple Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23
24 .literal16
25 L01:.long 12345678
26 .long 87654321
27 .long 12345678
28 .long 87654321
29
30 L02:.long 12345678
31 .long 87654321
32 .long 12345678
33 .long 87654322
34
35 _foo16:
36 _bar16:
37 .long 22345678
38 .long 87654321
39 .long 12345678
40 .long 87654323
41
42 L04:.long 12345678
43 .long 87654321
44 .long 12345678
45 .long 87654324
46
47
48 .literal8
49 L1: .long 12345678
50 .long 87654321
51
52 L2: .long 12345678
53 .long 87654322
54
55 _foo8:
56 _bar8:
57 .long 22345678
58 .long 87654323
59
60 L4: .long 12345678
61 .long 87654324
62
63 .literal4
64 L11:.long 12345678
65 L12:.long 12345679
66 _foo4:
67 _bar4:
68 .long 22345670
69 L14:.long 12345671
70
71 .cstring
72 L21: .ascii "hello\0"
73 L22: .ascii "hello,there\0"
74 _string1:
75 _string2:
76 .ascii "there\0"
77 L24: .ascii "bye\0"