Only source vars can get a ptr_offset, and we need one in these operations as
they are implemented now.
OrcMipsRegister tmp1 = ORC_MIPS_T4;
OrcMipsRegister tmp2 = ORC_MIPS_T5;
- if (compiler->vars[insn->src_args[0]].vartype == ORC_VAR_TYPE_CONST) {
+ if (src->vartype != ORC_VAR_TYPE_SRC) {
ORC_PROGRAM_ERROR (compiler, "not implemented");
return;
}
OrcVariable *dest = compiler->vars + insn->dest_args[0];
OrcMipsRegister tmp = ORC_MIPS_T3;
- if (compiler->vars[insn->src_args[0]].vartype == ORC_VAR_TYPE_CONST) {
+ if (src->vartype != ORC_VAR_TYPE_SRC) {
ORC_PROGRAM_ERROR (compiler, "not implemented");
return;
}