mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 00:07:57 -06:00
tcg: Merge INDEX_op_deposit_{i32,i64}
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
a5a8dd33aa
commit
4d137ff819
7 changed files with 16 additions and 20 deletions
|
@ -442,7 +442,7 @@ Misc
|
|||
- | Indicate that the value of *t0* won't be used later. It is useful to
|
||||
force dead code elimination.
|
||||
|
||||
* - deposit_i32/i64 *dest*, *t1*, *t2*, *pos*, *len*
|
||||
* - deposit *dest*, *t1*, *t2*, *pos*, *len*
|
||||
|
||||
- | Deposit *t2* as a bitfield into *t1*, placing the result in *dest*.
|
||||
|
|
||||
|
@ -451,10 +451,12 @@ Misc
|
|||
| *len* - the length of the bitfield
|
||||
| *pos* - the position of the first bit, counting from the LSB
|
||||
|
|
||||
| For example, "deposit_i32 dest, t1, t2, 8, 4" indicates a 4-bit field
|
||||
| For example, "deposit dest, t1, t2, 8, 4" indicates a 4-bit field
|
||||
at bit 8. This operation would be equivalent to
|
||||
|
|
||||
| *dest* = (*t1* & ~0x0f00) | ((*t2* << 8) & 0x0f00)
|
||||
|
|
||||
| on TCG_TYPE_I32.
|
||||
|
||||
* - extract *dest*, *t1*, *pos*, *len*
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue