Fix compressed assign to memory word.
This is a pretty trivial fix for the code generation of compressed assign to a memory word. We generated incorect code for the stash of the calculated word index, causing the assign of the result to not work properly.
This commit is contained in:
parent
0553250997
commit
9ba6ab49ac
|
|
@ -183,7 +183,7 @@ static void get_vec_from_lval_slice(ivl_lval_t lval, struct vec_slice_info*slice
|
|||
slice->u_.memory_word_dynamic.word_idx_reg = allocate_word();
|
||||
slice->u_.memory_word_dynamic.x_flag = allocate_vector(1);
|
||||
fprintf(vvp_out, " %%mov/wu %d, 3;\n",
|
||||
slice->u_.memory_word_dynamic.x_flag);
|
||||
slice->u_.memory_word_dynamic.word_idx_reg);
|
||||
fprintf(vvp_out, " %%mov %u, 4, 1;\n",
|
||||
slice->u_.memory_word_dynamic.x_flag);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue