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
This commit is contained in:
Hal Finkel
2012-11-29 00:42:22 +00:00
parent 0416bc140f
commit 0bf2470000
2 changed files with 42 additions and 1 deletions
@@ -70,7 +70,7 @@ static MCAsmInfo *createPPCMCAsmInfo(const Target &T, StringRef TT) {
// Initial state of the frame pointer is R1.
MachineLocation Dst(MachineLocation::VirtualFP);
MachineLocation Src(PPC::R1, 0);
MachineLocation Src(isPPC64? PPC::X1 : PPC::R1, 0);
MAI->addInitialFrameState(0, Dst, Src);
return MAI;
+41
View File
@@ -0,0 +1,41 @@
;; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -filetype=obj %s -o - | \
;; RUN: elf-dump --dump-section-data | FileCheck %s
;; FIXME: this file should be in .s form, change when asm parser is available.
define void @f() {
entry:
ret void
}
;; CHECK: ('sh_name', 0x{{.*}}) # '.eh_frame'
;; CHECK-NEXT: ('sh_type', 0x00000001)
;; CHECK-NEXT: ('sh_flags', 0x0000000000000002)
;; CHECK-NEXT: ('sh_addr', 0x{{.*}})
;; CHECK-NEXT: ('sh_offset', 0x{{.*}})
;; CHECK-NEXT: ('sh_size', 0x0000000000000030)
;; CHECK-NEXT: ('sh_link', 0x00000000)
;; CHECK-NEXT: ('sh_info', 0x00000000)
;; CHECK-NEXT: ('sh_addralign', 0x0000000000000008)
;; CHECK-NEXT: ('sh_entsize', 0x0000000000000000)
;; CHECK-NEXT: ('_section_data', '00000010 00000000 017a5200 01784101 000c0100 00000018 00000018 00000000 00000000 00000000 00000010 00000000')
;; CHECK: ('sh_name', 0x{{.*}}) # '.rela.eh_frame'
;; CHECK-NEXT: ('sh_type', 0x00000004)
;; CHECK-NEXT: ('sh_flags', 0x0000000000000000)
;; CHECK-NEXT: ('sh_addr', 0x{{.*}})
;; CHECK-NEXT: ('sh_offset', 0x{{.*}})
;; CHECK-NEXT: ('sh_size', 0x0000000000000018)
;; CHECK-NEXT: ('sh_link', 0x{{.*}})
;; CHECK-NEXT: ('sh_info', 0x{{.*}})
;; CHECK-NEXT: ('sh_addralign', 0x0000000000000008)
;; CHECK-NEXT: ('sh_entsize', 0x0000000000000018)
;; CHECK-NEXT: ('_relocations', [
;; CHECK-NEXT: # Relocation 0
;; CHECK-NEXT: (('r_offset', 0x000000000000001c)
;; CHECK-NEXT: ('r_sym', 0x{{.*}})
;; CHECK-NEXT: ('r_type', 0x00000026)
;; CHECK-NEXT: ('r_addend', 0x0000000000000000)
;; CHECK-NEXT: ),
;; CHECK-NEXT: ])