llvm.org GIT mirror llvm / 0bf2470
Merge in r168799 (PPC bug fix). git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_32@168842 91177308-0d34-0410-b5e6-96231b3b80d8 Hal Finkel 6 years ago
2 changed file(s) with 42 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6969
7070 // Initial state of the frame pointer is R1.
7171 MachineLocation Dst(MachineLocation::VirtualFP);
72 MachineLocation Src(PPC::R1, 0);
72 MachineLocation Src(isPPC64? PPC::X1 : PPC::R1, 0);
7373 MAI->addInitialFrameState(0, Dst, Src);
7474
7575 return MAI;
0 ;; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -filetype=obj %s -o - | \
1 ;; RUN: elf-dump --dump-section-data | FileCheck %s
2
3 ;; FIXME: this file should be in .s form, change when asm parser is available.
4
5 define void @f() {
6 entry:
7 ret void
8 }
9
10 ;; CHECK: ('sh_name', 0x{{.*}}) # '.eh_frame'
11 ;; CHECK-NEXT: ('sh_type', 0x00000001)
12 ;; CHECK-NEXT: ('sh_flags', 0x0000000000000002)
13 ;; CHECK-NEXT: ('sh_addr', 0x{{.*}})
14 ;; CHECK-NEXT: ('sh_offset', 0x{{.*}})
15 ;; CHECK-NEXT: ('sh_size', 0x0000000000000030)
16 ;; CHECK-NEXT: ('sh_link', 0x00000000)
17 ;; CHECK-NEXT: ('sh_info', 0x00000000)
18 ;; CHECK-NEXT: ('sh_addralign', 0x0000000000000008)
19 ;; CHECK-NEXT: ('sh_entsize', 0x0000000000000000)
20 ;; CHECK-NEXT: ('_section_data', '00000010 00000000 017a5200 01784101 000c0100 00000018 00000018 00000000 00000000 00000000 00000010 00000000')
21
22 ;; CHECK: ('sh_name', 0x{{.*}}) # '.rela.eh_frame'
23 ;; CHECK-NEXT: ('sh_type', 0x00000004)
24 ;; CHECK-NEXT: ('sh_flags', 0x0000000000000000)
25 ;; CHECK-NEXT: ('sh_addr', 0x{{.*}})
26 ;; CHECK-NEXT: ('sh_offset', 0x{{.*}})
27 ;; CHECK-NEXT: ('sh_size', 0x0000000000000018)
28 ;; CHECK-NEXT: ('sh_link', 0x{{.*}})
29 ;; CHECK-NEXT: ('sh_info', 0x{{.*}})
30 ;; CHECK-NEXT: ('sh_addralign', 0x0000000000000008)
31 ;; CHECK-NEXT: ('sh_entsize', 0x0000000000000018)
32 ;; CHECK-NEXT: ('_relocations', [
33 ;; CHECK-NEXT: # Relocation 0
34 ;; CHECK-NEXT: (('r_offset', 0x000000000000001c)
35 ;; CHECK-NEXT: ('r_sym', 0x{{.*}})
36 ;; CHECK-NEXT: ('r_type', 0x00000026)
37 ;; CHECK-NEXT: ('r_addend', 0x0000000000000000)
38 ;; CHECK-NEXT: ),
39 ;; CHECK-NEXT: ])
40