Change the int<->float conversion opcode string.

Using "=" was rather confusing, so changing it to "<CONV>" seems to be a
good idea. As the string is used only for selecting opcodes at compile
time, only qfcc is affected.
This commit is contained in:
Bill Currie 2012-11-16 14:45:11 +09:00
parent fb82a96cc7
commit d0c37bbc51
2 changed files with 3 additions and 3 deletions

View file

@ -463,12 +463,12 @@ VISIBLE opcode_t pr_opcodes[] = {
"%Ga, %sb, %gc",
},
{"=", "conv.if", OP_CONV_IF, false,
{"<CONV>", "conv.if", OP_CONV_IF, false,
ev_integer, ev_invalid, ev_float,
PROG_VERSION,
"%Ga, %gc",
},
{"=", "conv.fi", OP_CONV_FI, false,
{"<CONV>", "conv.fi", OP_CONV_FI, false,
ev_float, ev_invalid, ev_integer,
PROG_VERSION,
"%Ga, %gc",

View file

@ -744,7 +744,7 @@ expr_cast (sblock_t *sblock, expr_t *e, operand_t **op)
operand_t *src = 0;
sblock = statement_subexpr (sblock, e->e.expr.e1, &src);
*op = temp_operand (e->e.expr.type);
s = new_statement ("=", e);
s = new_statement ("<CONV>", e);
s->opa = src;
s->opc = *op;
sblock_add_statement (sblock, s);