Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
67029f20
Commit
67029f20
authored
Feb 28, 2014
by
Erik de Castro Lopo
Browse files
PPC: Fix loads of PIC data with > 16 bit offsets (#7830).
Loads should now handle up to 32 bit offsets.
parent
af6746fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/nativeGen/PIC.hs
View file @
67029f20
...
...
@@ -728,9 +728,10 @@ initializePicBase_ppc ArchPPC os picReg
fetchPC
(
BasicBlock
bID
insns
)
=
BasicBlock
bID
(
PPC
.
FETCHPC
picReg
:
PPC
.
ADDIS
tmp
picReg
(
PPC
.
HI
offsetToOffset
)
:
PPC
.
LD
PPC
.
archWordSize
tmp
(
PPC
.
AddrRegImm
picReg
offsetToOffset
)
:
PPC
.
ADD
picReg
picReg
(
PPC
.
RIReg
tmp
)
(
PPC
.
AddrRegImm
tmp
(
PPC
.
LO
offsetToOffset
)
)
:
PPC
.
ADD
picReg
picReg
(
PPC
.
RIReg
picReg
)
:
insns
)
return
(
CmmProc
info
lab
live
(
ListGraph
blocks'
)
:
gotOffset
:
statics
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment