Fixed some bugs.
[llvm/zpu.git] / test / MC / MachO / reloc-pcrel.s
blobfff7cc0ada04e162f5724d2118c44ad84f38750f
1 // RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | macho-dump | FileCheck %s
3 // CHECK: # Relocation 0
4 // CHECK: (('word-0', 0xe4000045),
5 // CHECK: ('word-1', 0x4)),
6 // CHECK: # Relocation 1
7 // CHECK: (('word-0', 0xe1000000),
8 // CHECK: ('word-1', 0x6)),
9 // CHECK: # Relocation 2
10 // CHECK: (('word-0', 0x40),
11 // CHECK: ('word-1', 0xd000002)),
12 // CHECK: # Relocation 3
13 // CHECK: (('word-0', 0x3b),
14 // CHECK: ('word-1', 0xd000002)),
15 // CHECK: # Relocation 4
16 // CHECK: (('word-0', 0x36),
17 // CHECK: ('word-1', 0xd000002)),
18 // CHECK: # Relocation 5
19 // CHECK: (('word-0', 0xe0000031),
20 // CHECK: ('word-1', 0x4)),
21 // CHECK: # Relocation 6
22 // CHECK: (('word-0', 0xe000002c),
23 // CHECK: ('word-1', 0x4)),
24 // CHECK: # Relocation 7
25 // CHECK: (('word-0', 0x27),
26 // CHECK: ('word-1', 0x5000001)),
27 // CHECK: # Relocation 8
28 // CHECK: (('word-0', 0xe0000022),
29 // CHECK: ('word-1', 0x2)),
30 // CHECK: # Relocation 9
31 // CHECK: (('word-0', 0xe000001d),
32 // CHECK: ('word-1', 0x2)),
33 // CHECK: # Relocation 10
34 // CHECK: (('word-0', 0x18),
35 // CHECK: ('word-1', 0x5000001)),
36 // CHECK-NEXT: ])
38 xorl %eax,%eax
40 .globl _a
41 _a:
42 xorl %eax,%eax
43 _b:
44 xorl %eax,%eax
45 L0:
46 xorl %eax,%eax
47 L1:
49 call L0
50 call L0 - 1
51 call L0 + 1
52 call _a
53 call _a - 1
54 call _a + 1
55 call _b
56 call _b - 1
57 call _b + 1
58 call _c
59 call _c - 1
60 call _c + 1
61 // call _a - L0
62 call _b - L0