summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Emont <guijemont@igalia.com>2012-10-30 12:43:29 +0100
committerGuillaume Emont <guijemont@igalia.com>2012-12-28 15:17:45 +0100
commit188de7f963b9d07b9cf2f9ed88820c53c697eb34 (patch)
treea3e513963bd1ff6ba977819b6b5108e28543e568
parent89e32ea1fb2661c2bac6dc5336b227b408ec8dea (diff)
downloadorc-188de7f963b9d07b9cf2f9ed88820c53c697eb34.tar.gz
mips: error when trying to use load with a constant
-rw-r--r--orc/orcrules-mips.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/orc/orcrules-mips.c b/orc/orcrules-mips.c
index 650ec38..676cd03 100644
--- a/orc/orcrules-mips.c
+++ b/orc/orcrules-mips.c
@@ -11,6 +11,11 @@ mips_rule_load (OrcCompiler *compiler, void *user, OrcInstruction *insn)
int total_shift = compiler->insn_shift + ORC_PTR_TO_INT (user);
int is_aligned = compiler->vars[insn->src_args[0]].is_aligned;
+ if (compiler->vars[insn->src_args[0]].vartype == ORC_VAR_TYPE_CONST) {
+ ORC_PROGRAM_ERROR (compiler, "not implemented");
+ return;
+ }
+
ORC_DEBUG ("insn_shift=%d", compiler->insn_shift);
/* FIXME: Check alignment. We are assuming data is aligned here */
switch (total_shift) {