diff options
author | David Schleef <ds@schleef.org> | 2010-09-04 00:33:58 -0700 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2010-09-04 00:33:58 -0700 |
commit | d7533e718d1922dd31cb9b015d3780b96892fe57 (patch) | |
tree | 18287b393a2609596f748eb5363143c960e4428f /orc/orcprogram-c.c | |
parent | 12722fdf233a77baf24d610813da814852d6f728 (diff) | |
download | orc-d7533e718d1922dd31cb9b015d3780b96892fe57.tar.gz |
c: Fix ldreslinl rule (again)
Diffstat (limited to 'orc/orcprogram-c.c')
-rw-r--r-- | orc/orcprogram-c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/orc/orcprogram-c.c b/orc/orcprogram-c.c index 1b8a0db..83c65c8 100644 --- a/orc/orcprogram-c.c +++ b/orc/orcprogram-c.c @@ -938,7 +938,7 @@ c_rule_ldreslinl (OrcCompiler *p, void *user, OrcInstruction *insn) ORC_ASM_CODE(p," orc_union32 a = ptr%d[tmp>>16];\n", insn->src_args[0]); ORC_ASM_CODE(p," orc_union32 b = ptr%d[(tmp>>16)+1];\n", insn->src_args[0]); for (i=0;i<4;i++){ - ORC_ASM_CODE(p," var%d.x4[%d] = (a.x4[%d] * (256-((tmp>>8)&0xff)) + b.x4[%d] * ((tmp>>8)&0xff))>>8;\n", + ORC_ASM_CODE(p," var%d.x4[%d] = ((orc_uint8)a.x4[%d] * (256-((tmp>>8)&0xff)) + (orc_uint8)b.x4[%d] * ((tmp>>8)&0xff))>>8;\n", insn->dest_args[0], i, i, i); } ORC_ASM_CODE(p," }\n"); |