projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
09dc0da
)
SPARC NCG: Fix 64bit integers returned from ccalls
author
Ben.Lippmeier@anu.edu.au
<unknown>
Tue, 20 Jan 2009 09:06:17 +0000
(09:06 +0000)
committer
Ben.Lippmeier@anu.edu.au
<unknown>
Tue, 20 Jan 2009 09:06:17 +0000
(09:06 +0000)
compiler/nativeGen/MachCodeGen.hs
patch
|
blob
|
history
diff --git
a/compiler/nativeGen/MachCodeGen.hs
b/compiler/nativeGen/MachCodeGen.hs
index
325a4e8
..
081947e
100644
(file)
--- a/
compiler/nativeGen/MachCodeGen.hs
+++ b/
compiler/nativeGen/MachCodeGen.hs
@@
-3669,8
+3669,10
@@
genCCall target dest_regs argsAndHints = do
= unitOL $ mkRegRegMoveInstr (RealReg $ oReg 0) r_dest
| not $ isFloatType rep
- , W64 <- width
- = unitOL $ mkRegRegMoveInstr (RealReg $ oReg 0) r_dest
+ , W64 <- width
+ , r_dest_hi <- getHiVRegFromLo r_dest
+ = toOL [ mkRegRegMoveInstr (RealReg $ oReg 0) r_dest_hi
+ , mkRegRegMoveInstr (RealReg $ oReg 1) r_dest]
in result