mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
Hexagon (target/hexagon) add A4_addp_c/A4_subp_c
Rdd32 = add(Rss32, Rtt32, Px4):carry Add with carry Rdd32 = sub(Rss32, Rtt32, Px4):carry Sub with carry Test cases in tests/tcg/hexagon/multi_result.c Signed-off-by: Taylor Simpson <tsimpson@quicinc.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <1617930474-31979-22-git-send-email-tsimpson@quicinc.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
0a65d28693
commit
57d352ac29
5 changed files with 147 additions and 0 deletions
|
@ -361,5 +361,16 @@ static inline void gen_store_conditional8(CPUHexagonState *env,
|
|||
tcg_gen_movi_tl(hex_llsc_addr, ~0);
|
||||
}
|
||||
|
||||
static TCGv gen_8bitsof(TCGv result, TCGv value)
|
||||
{
|
||||
TCGv zero = tcg_const_tl(0);
|
||||
TCGv ones = tcg_const_tl(0xff);
|
||||
tcg_gen_movcond_tl(TCG_COND_NE, result, value, zero, ones, zero);
|
||||
tcg_temp_free(zero);
|
||||
tcg_temp_free(ones);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#include "tcg_funcs_generated.c.inc"
|
||||
#include "tcg_func_table_generated.c.inc"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue