Commit e1001abd authored by simonmar's avatar simonmar

[project @ 2006-01-09 10:31:14 by simonmar]

ord# and chr# should be no-ops, not conversions between wordRep and I32.
parent 9d7da331
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment