The expression(args[i] < 0) always returns false (#1207)
* Update optimize.c typedef uint64_t tcg_target_ulong; typedef tcg_target_ulong TCGArg; TCGArg *args The expression(args[i] < 0) always returns false * Update tcg.c typedef uint64_t tcg_target_ulong; typedef tcg_target_ulong TCGArg; TCGArg *args The expression(args[i] < 0) always returns false
This commit is contained in:
@ -1370,7 +1370,7 @@ static TCGArg *tcg_constant_folding(TCGContext *s, uint16_t *tcg_opc_ptr,
|
|||||||
} else {
|
} else {
|
||||||
do_reset_output:
|
do_reset_output:
|
||||||
for (i = 0; i < nb_oargs; i++) {
|
for (i = 0; i < nb_oargs; i++) {
|
||||||
if (args[i] < 0 || args[i] >= TCG_MAX_TEMPS) {
|
if (args[i] >= TCG_MAX_TEMPS) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
reset_temp(s, args[i]);
|
reset_temp(s, args[i]);
|
||||||
|
@ -1719,7 +1719,7 @@ static void tcg_liveness_analysis(TCGContext *s)
|
|||||||
implies side effects */
|
implies side effects */
|
||||||
if (!(def->flags & TCG_OPF_SIDE_EFFECTS) && nb_oargs != 0) {
|
if (!(def->flags & TCG_OPF_SIDE_EFFECTS) && nb_oargs != 0) {
|
||||||
for(i = 0; i < nb_oargs; i++) {
|
for(i = 0; i < nb_oargs; i++) {
|
||||||
if (args[i] < 0 || args[i] >= TCG_MAX_TEMPS) {
|
if (args[i] >= TCG_MAX_TEMPS) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
arg = args[i];
|
arg = args[i];
|
||||||
|
Reference in New Issue
Block a user