[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ELF / cfi-large-model.s
blobcee8d14d6b00142fe9a8f82598ec2d6fb2c2db47
1 // REQUIRES: powerpc-registered-target
2 // REQUIRES: x86-registered-target
3 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu -large-code-model %s \
4 // RUN: -o - | llvm-readobj -S --sd - | FileCheck --check-prefix=CHECK-X86 %s
5 // RUN: llvm-mc -filetype=obj -triple powerpc64le-linux-gnu -large-code-model %s \
6 // RUN: -o - | llvm-readobj -S --sd - | FileCheck --check-prefix=CHECK-PPC %s
9 // CHECK-X86: Section {
10 // CHECK-X86: Index:
11 // CHECK-X86: Name: .eh_frame
12 // CHECK-X86-NEXT: Type: SHT_X86_64_UNWIND
13 // CHECK-X86-NEXT: Flags [
14 // CHECK-X86-NEXT: SHF_ALLOC
15 // CHECK-X86-NEXT: ]
16 // CHECK-X86-NEXT: Address: 0x0
17 // CHECK-X86-NEXT: Offset: 0x40
18 // CHECK-X86-NEXT: Size: 56
19 // CHECK-X86-NEXT: Link: 0
20 // CHECK-X86-NEXT: Info: 0
21 // CHECK-X86-NEXT: AddressAlignment: 8
22 // CHECK-X86-NEXT: EntrySize: 0
23 // CHECK-X86-NEXT: SectionData (
24 // CHECK-X86-NEXT: 0000: 14000000 00000000 017A5200 01781001 |.........zR..x..|
25 // CHECK-X86-NEXT: 0010: 1C0C0708 90010000 1C000000 1C000000 |................|
26 // CHECK-X86-NEXT: 0020: 00000000 00000000 00000000 00000000 |................|
27 // CHECK-X86-NEXT: 0030: 00000000 00000000 |........|
28 // CHECK-X86-NEXT: )
30 // CHECK-PPC: Section {
31 // CHECK-PPC: Index:
32 // CHECK-PPC: Name: .eh_frame
33 // CHECK-PPC-NEXT: Type: SHT_PROGBITS
34 // CHECK-PPC-NEXT: Flags [
35 // CHECK-PPC-NEXT: SHF_ALLOC
36 // CHECK-PPC-NEXT: ]
37 // CHECK-PPC-NEXT: Address: 0x0
38 // CHECK-PPC-NEXT: Offset: 0x40
39 // CHECK-PPC-NEXT: Size: 48
40 // CHECK-PPC-NEXT: Link: 0
41 // CHECK-PPC-NEXT: Info: 0
42 // CHECK-PPC-NEXT: AddressAlignment: 8
43 // CHECK-PPC-NEXT: EntrySize: 0
44 // CHECK-PPC-NEXT: SectionData (
45 // CHECK-PPC-NEXT: 0000: 10000000 00000000 017A5200 04784101 |.........zR..xA.|
46 // CHECK-PPC-NEXT: 0010: 1C0C0100 18000000 18000000 00000000 |................|
47 // CHECK-PPC-NEXT: 0020: 00000000 00000000 00000000 00000000 |................|
48 // CHECK-PPC-NEXT: )
49 // CHECK-PPC-NEXT: }
52 .cfi_startproc
53 .cfi_endproc