File: arm-header.s

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (50 lines) | stat: -rw-r--r-- 1,476 bytes parent folder | download | duplicates (12)
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
47
48
49
50
# REQUIRES: arm
# RUN: llvm-mc -filetype=obj -triple=armv7aeb-none-linux-gnueabi -mcpu=cortex-a8 %s -o %t.o
# RUN: ld.lld %t.o -o %t1
# RUN: llvm-readobj -h %t1 | FileCheck %s

# RUN: llvm-mc -filetype=obj -triple=armv7aeb-none-linux-gnueabi -mcpu=cortex-a8 %s -o %t.o
# RUN: ld.lld --be8 %t.o -o %t1
# RUN: llvm-readobj -h %t1 | FileCheck -check-prefix=CHECK-EB %s

# CHECK: Format: elf32-bigarm

# CHECK: ElfHeader {
# CHECK-NEXT:   Ident {
# CHECK-NEXT:     Magic: (7F 45 4C 46)
# CHECK-NEXT:     Class: 32-bit (0x1)
# CHECK-NEXT:     DataEncoding: BigEndian (0x2)
# CHECK-NEXT:     FileVersion: 1
# CHECK-NEXT:     OS/ABI: SystemV (0x0)
# CHECK-NEXT:     ABIVersion: 0
# CHECK-NEXT:     Unused: (00 00 00 00 00 00 00)
# CHECK-NEXT:   }

# CHECK:   Flags [ (0x5000200)
# CHECK-NEXT:     0x200
# CHECK-NEXT:     0x1000000
# CHECK-NEXT:     0x4000000
# CHECK-NEXT:   ]

# CHECK-NOT: 0x800000

# CHECK-EB: Format: elf32-bigarm

# CHECK-EB: ElfHeader {
# CHECK-EB-NEXT:   Ident {
# CHECK-EB-NEXT:     Magic: (7F 45 4C 46)
# CHECK-EB-NEXT:     Class: 32-bit (0x1)
# CHECK-EB-NEXT:     DataEncoding: BigEndian (0x2)
# CHECK-EB-NEXT:     FileVersion: 1
# CHECK-EB-NEXT:     OS/ABI: SystemV (0x0)
# CHECK-EB-NEXT:     ABIVersion: 0
# CHECK-EB-NEXT:     Unused: (00 00 00 00 00 00 00)
# CHECK-EB-NEXT:   }

# CHECK-EB:   Flags [ (0x5800200)
# CHECK-EB-NEXT:     0x200
# CHECK-EB-NEXT:     0x800000
# CHECK-EB-NEXT:     0x1000000
# CHECK-EB-NEXT:     0x4000000
# CHECK-EB-NEXT:   ]