From: Guillaume Emont Date: Sat, 15 Dec 2012 16:48:43 +0000 (+0100) Subject: mips: loadupib, loadupdb: error (not implemented) if source argument is not source var X-Git-Tag: orc-0.4.17~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b959c0830459e166cbc4b0f47d133942639cb0ab;p=platform%2Fupstream%2Forc.git mips: loadupib, loadupdb: error (not implemented) if source argument is not source var Only source vars can get a ptr_offset, and we need one in these operations as they are implemented now. --- diff --git a/orc/orcrules-mips.c b/orc/orcrules-mips.c index 465c261..967249a 100644 --- a/orc/orcrules-mips.c +++ b/orc/orcrules-mips.c @@ -379,7 +379,7 @@ mips_rule_loadupib (OrcCompiler *compiler, void *user, OrcInstruction *insn) 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; } @@ -452,7 +452,7 @@ mips_rule_loadupdb (OrcCompiler *compiler, void *user, OrcInstruction *insn) 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; }