File: reloc-pcrel.s

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,998,520 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (46 lines) | stat: -rw-r--r-- 1,286 bytes parent folder | download | duplicates (22)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r - | FileCheck %s

        xorl %eax,%eax

        .globl _a
_a:
        xorl %eax,%eax
_b:
_d:
        xorl %eax,%eax
L0:
        xorl %eax,%eax
L1:

        call L0
        call L0 - 1
        call L0 + 1
        call _a
        call _a - 1
        call _a + 1
        call _b
        call _b - 1
        call _b + 1
        call _c
        call _c - 1
        call _c + 1
//        call _a - L0
        call _b - L0

        .subsections_via_symbols

// CHECK: Relocations [
// CHECK-NEXT:   Section __text {
// CHECK-NEXT:     0x45 1 2 n/a GENERIC_RELOC_LOCAL_SECTDIFF 1 0x4
// CHECK-NEXT:     0x0 1 2 n/a GENERIC_RELOC_PAIR 1 0x6
// CHECK-NEXT:     0x40 1 2 1 GENERIC_RELOC_VANILLA 0 _c
// CHECK-NEXT:     0x3B 1 2 1 GENERIC_RELOC_VANILLA 0 _c
// CHECK-NEXT:     0x36 1 2 1 GENERIC_RELOC_VANILLA 0 _c
// CHECK-NEXT:     0x31 1 2 n/a GENERIC_RELOC_VANILLA 1 0x4
// CHECK-NEXT:     0x2C 1 2 n/a GENERIC_RELOC_VANILLA 1 0x4
// CHECK-NEXT:     0x27 1 2 0 GENERIC_RELOC_VANILLA 0 __text
// CHECK-NEXT:     0x22 1 2 n/a GENERIC_RELOC_VANILLA 1 0x2
// CHECK-NEXT:     0x1D 1 2 n/a GENERIC_RELOC_VANILLA 1 0x2
// CHECK-NEXT:     0x18 1 2 0 GENERIC_RELOC_VANILLA 0 __text
// CHECK-NEXT:   }
// CHECK-NEXT: ]