Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
e1001abd
Commit
e1001abd
authored
Jan 09, 2006
by
simonmar
Browse files
[project @ 2006-01-09 10:31:14 by simonmar]
ord# and chr# should be no-ops, not conversions between wordRep and I32.
parent
9d7da331
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/codeGen/CgPrimOp.hs
View file @
e1001abd
...
...
@@ -330,6 +330,8 @@ nopOp Int2WordOp = True
nopOp
Word2IntOp
=
True
nopOp
Int2AddrOp
=
True
nopOp
Addr2IntOp
=
True
nopOp
ChrOp
=
True
-- Int# and Char# are rep'd the same
nopOp
OrdOp
=
True
nopOp
_
=
False
-- These PrimOps turn into double casts
...
...
@@ -451,9 +453,6 @@ translateOp Float2IntOp = Just (MO_S_Conv F32 wordRep)
translateOp
Float2DoubleOp
=
Just
(
MO_S_Conv
F32
F64
)
translateOp
Double2FloatOp
=
Just
(
MO_S_Conv
F64
F32
)
translateOp
OrdOp
=
Just
(
MO_U_Conv
I32
wordRep
)
translateOp
ChrOp
=
Just
(
MO_U_Conv
wordRep
I32
)
-- Word comparisons masquerading as more exotic things.
translateOp
SameMutVarOp
=
Just
mo_wordEq
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment