Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / arm-header.s
blobbb20250a46edecf976fd0252c0699f5234befa4b
1 # REQUIRES: arm
2 # RUN: llvm-mc -filetype=obj -triple=armv7aeb-none-linux-gnueabi -mcpu=cortex-a8 %s -o %t.o
3 # RUN: ld.lld %t.o -o %t1
4 # RUN: llvm-readobj -h %t1 | FileCheck %s
6 # RUN: llvm-mc -filetype=obj -triple=armv7aeb-none-linux-gnueabi -mcpu=cortex-a8 %s -o %t.o
7 # RUN: ld.lld --be8 %t.o -o %t1
8 # RUN: llvm-readobj -h %t1 | FileCheck -check-prefix=CHECK-EB %s
10 # CHECK: Format: elf32-bigarm
12 # CHECK: ElfHeader {
13 # CHECK-NEXT: Ident {
14 # CHECK-NEXT: Magic: (7F 45 4C 46)
15 # CHECK-NEXT: Class: 32-bit (0x1)
16 # CHECK-NEXT: DataEncoding: BigEndian (0x2)
17 # CHECK-NEXT: FileVersion: 1
18 # CHECK-NEXT: OS/ABI: SystemV (0x0)
19 # CHECK-NEXT: ABIVersion: 0
20 # CHECK-NEXT: Unused: (00 00 00 00 00 00 00)
21 # CHECK-NEXT: }
23 # CHECK: Flags [ (0x5000200)
24 # CHECK-NEXT: 0x200
25 # CHECK-NEXT: 0x1000000
26 # CHECK-NEXT: 0x4000000
27 # CHECK-NEXT: ]
29 # CHECK-NOT: 0x800000
31 # CHECK-EB: Format: elf32-bigarm
33 # CHECK-EB: ElfHeader {
34 # CHECK-EB-NEXT: Ident {
35 # CHECK-EB-NEXT: Magic: (7F 45 4C 46)
36 # CHECK-EB-NEXT: Class: 32-bit (0x1)
37 # CHECK-EB-NEXT: DataEncoding: BigEndian (0x2)
38 # CHECK-EB-NEXT: FileVersion: 1
39 # CHECK-EB-NEXT: OS/ABI: SystemV (0x0)
40 # CHECK-EB-NEXT: ABIVersion: 0
41 # CHECK-EB-NEXT: Unused: (00 00 00 00 00 00 00)
42 # CHECK-EB-NEXT: }
44 # CHECK-EB: Flags [ (0x5800200)
45 # CHECK-EB-NEXT: 0x200
46 # CHECK-EB-NEXT: 0x800000
47 # CHECK-EB-NEXT: 0x1000000
48 # CHECK-EB-NEXT: 0x4000000
49 # CHECK-EB-NEXT: ]