Skip to content
Snippets Groups Projects
Commit fa68e248 authored by Julian Seward's avatar Julian Seward
Browse files

[project @ 2000-01-20 13:58:13 by sewardj]

trivialCode (x86), when fst arg is immediate, assumed you could reverse
the order of operands, but not true for eg subtract.  Fixed.
parent 94647604
No related merge requests found
......@@ -2792,8 +2792,8 @@ trivialCode instr x y
src1 = registerName register1 dst
in code1 .
if isFixed register1 && src1 /= dst
then mkSeqInstrs [MOV L (OpReg src1) (OpReg dst),
instr (OpImm imm__2) (OpReg dst)]
then mkSeqInstrs [MOV L (OpImm imm__2) (OpReg dst),
instr (OpReg src1) (OpReg dst)]
else
mkSeqInstr (instr (OpImm imm__2) (OpReg src1))
in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment