Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
9bb0cb7c
Commit
9bb0cb7c
authored
27 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1997-06-05 20:52:17 by sof]
Support/hack for handling double alignment of double array access correctly
parent
99c00cd6
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/nativeGen/PprMach.lhs
+25
-9
25 additions, 9 deletions
ghc/compiler/nativeGen/PprMach.lhs
with
25 additions
and
9 deletions
ghc/compiler/nativeGen/PprMach.lhs
+
25
−
9
View file @
9bb0cb7c
...
...
@@ -1121,6 +1121,16 @@ pprCondInstr name cond arg
-- a clumsy hack for now, to handle possible double alignment problems
-- even clumsier, to allow for RegReg regs that show when doing indexed
-- reads (bytearrays).
--
pprInstr (LD DF (AddrRegReg g1 g2) reg)
= hcat [
ptext SLIT("\tadd\t"), pprReg g1,comma,pprReg g2,comma,pprReg g1, char '\n',
pp_ld_lbracket, pprReg g1, pp_rbracket_comma, pprReg reg, char '\n',
pp_ld_lbracket, pprReg g1, ptext SLIT("+4]"), comma, pprReg (fPair reg)
]
pprInstr (LD DF addr reg) | maybeToBool off_addr
= hcat [
pp_ld_lbracket,
...
...
@@ -1151,18 +1161,24 @@ pprInstr (LD size addr reg)
-- The same clumsy hack as above
pprInstr (ST DF reg addr) | maybeToBool off_addr
= hcat [
pprInstr (ST DF reg (AddrRegReg g1 g2))
= hcat [
ptext SLIT("\tadd\t"),
pprReg g1,comma,pprReg g2,comma,pprReg g1, char '\n',
ptext SLIT("\tst\t"),
pprReg reg, pp_comma_lbracket, pprReg g1,
ptext SLIT("]\n\tst\t"),
pprReg (fPair reg), pp_comma_lbracket, pprReg g1, ptext SLIT("+4]")
]
pprInstr (ST DF reg addr) | maybeToBool off_addr
= hcat [
ptext SLIT("\tst\t"),
pprReg reg,
pp_comma_lbracket,
pprAddr addr,
pprReg reg, pp_comma_lbracket, pprAddr addr,
ptext SLIT("]\n\tst\t"),
pprReg (fPair reg),
pp_comma_lbracket,
pprAddr addr2,
rbrack
pprReg (fPair reg), pp_comma_lbracket,
pprAddr addr2, rbrack
]
where
off_addr = addrOffset addr 4
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment