STOREP also has the destination in OPB rather than OPC

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-11 18:06:10 +02:00
parent 91e3765a00
commit fda4687ece

6
ir.c
View file

@ -2364,8 +2364,10 @@ tailcall:
stmt.o1.u1 = stmt.o3.u1; stmt.o1.u1 = stmt.o3.u1;
stmt.o3.u1 = 0; stmt.o3.u1 = 0;
} }
else if (stmt.opcode >= INSTR_STORE_F && else if ((stmt.opcode >= INSTR_STORE_F &&
stmt.opcode <= INSTR_STORE_FNC) stmt.opcode <= INSTR_STORE_FNC) ||
(stmt.opcode >= INSTR_STOREP_F &&
stmt.opcode <= INSTR_STOREP_FNC))
{ {
/* 2-operand instructions with A -> B */ /* 2-operand instructions with A -> B */
stmt.o2.u1 = stmt.o3.u1; stmt.o2.u1 = stmt.o3.u1;