projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1fb0f13
)
typo in comment
author
Simon Marlow
<marlowsd@gmail.com>
Wed, 16 Jun 2010 11:13:59 +0000
(11:13 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Wed, 16 Jun 2010 11:13:59 +0000
(11:13 +0000)
compiler/cmm/CmmOpt.hs
patch
|
blob
|
history
diff --git
a/compiler/cmm/CmmOpt.hs
b/compiler/cmm/CmmOpt.hs
index
1125ac1
..
2dced6a
100644
(file)
--- a/
compiler/cmm/CmmOpt.hs
+++ b/
compiler/cmm/CmmOpt.hs
@@
-441,7
+441,7
@@
cmmMachOpFold mop args@[x, y@(CmmLit (CmmInt n _))]
CmmReg _ <- x -> -- We duplicate x below, hence require
-- it is a reg. FIXME: remove this restriction.
-- shift right is not the same as quot, because it rounds
CmmReg _ <- x -> -- We duplicate x below, hence require
-- it is a reg. FIXME: remove this restriction.
-- shift right is not the same as quot, because it rounds
- -- to minus infinity, whereasq uot rounds toward zero.
+ -- to minus infinity, whereasq quot rounds toward zero.
-- To fix this up, we add one less than the divisor to the
-- dividend if it is a negative number.
--
-- To fix this up, we add one less than the divisor to the
-- dividend if it is a negative number.
--