vvp: Remove unused `%mov/wu` instruction

The `%mov/wu` instruction moves data from one index register to another.
The instruction is not used. It also does the same as `%ix/mov`. So remove
it.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:
Lars-Peter Clausen 2022-05-22 12:53:49 +02:00
parent e8cc9f3721
commit 781089662c
3 changed files with 0 additions and 15 deletions

View File

@ -216,7 +216,6 @@ static const struct opcode_table_s opcode_table[] = {
{ "%mod", of_MOD, 0, {OA_NONE, OA_NONE, OA_NONE} },
{ "%mod/s", of_MOD_S, 0, {OA_NONE, OA_NONE, OA_NONE} },
{ "%mod/wr", of_MOD_WR, 0, {OA_NONE, OA_NONE, OA_NONE} },
{ "%mov/wu", of_MOV_WU, 2, {OA_BIT1, OA_BIT2, OA_NONE} },
{ "%mul", of_MUL, 0, {OA_NONE, OA_NONE, OA_NONE} },
{ "%mul/wr", of_MUL_WR, 0, {OA_NONE, OA_NONE, OA_NONE} },
{ "%muli", of_MULI, 3, {OA_BIT1, OA_BIT2, OA_NUMBER} },

View File

@ -806,8 +806,6 @@ The /s form does signed %.
This opcode is the real-valued modulus of the two real values.
* %mov/wu <dst>, <src>
* %mul
* %muli <vala>, <valb>, <wid>

View File

@ -4500,18 +4500,6 @@ bool of_PARTI_U(vthread_t thr, vvp_code_t cp)
return of_PARTI_base(thr, cp, false);
}
/*
* %mov/wu <dst>, <src>
*/
bool of_MOV_WU(vthread_t thr, vvp_code_t cp)
{
unsigned dst = cp->bit_idx[0];
unsigned src = cp->bit_idx[1];
thr->words[dst].w_uint = thr->words[src].w_uint;
return true;
}
/*
* %mul
*/