Revision f48f3ede tcg/tcg.c
b/tcg/tcg.c | ||
---|---|---|
730 | 730 |
return NULL; |
731 | 731 |
} |
732 | 732 |
|
733 |
static const char * const cond_name[] = |
|
734 |
{ |
|
735 |
[TCG_COND_EQ] = "eq", |
|
736 |
[TCG_COND_NE] = "ne", |
|
737 |
[TCG_COND_LT] = "lt", |
|
738 |
[TCG_COND_GE] = "ge", |
|
739 |
[TCG_COND_LE] = "le", |
|
740 |
[TCG_COND_GT] = "gt", |
|
741 |
[TCG_COND_LTU] = "ltu", |
|
742 |
[TCG_COND_GEU] = "geu", |
|
743 |
[TCG_COND_LEU] = "leu", |
|
744 |
[TCG_COND_GTU] = "gtu" |
|
745 |
}; |
|
746 |
|
|
733 | 747 |
void tcg_dump_ops(TCGContext *s, FILE *outfile) |
734 | 748 |
{ |
735 | 749 |
const uint16_t *opc_ptr; |
... | ... | |
841 | 855 |
fprintf(outfile, "%s", |
842 | 856 |
tcg_get_arg_str_idx(s, buf, sizeof(buf), args[k++])); |
843 | 857 |
} |
844 |
for(i = 0; i < nb_cargs; i++) { |
|
858 |
if (c == INDEX_op_brcond_i32 |
|
859 |
#if TCG_TARGET_REG_BITS == 32 |
|
860 |
|| c == INDEX_op_brcond2_i32 |
|
861 |
#elif TCG_TARGET_REG_BITS == 64 |
|
862 |
|| c == INDEX_op_brcond_i64 |
|
863 |
#endif |
|
864 |
) { |
|
865 |
if (args[k] < ARRAY_SIZE(cond_name) && cond_name[args[k]]) |
|
866 |
fprintf(outfile, ",%s", cond_name[args[k++]]); |
|
867 |
else |
|
868 |
fprintf(outfile, ",$0x%" TCG_PRIlx, args[k++]); |
|
869 |
i = 1; |
|
870 |
} |
|
871 |
else |
|
872 |
i = 0; |
|
873 |
for(; i < nb_cargs; i++) { |
|
845 | 874 |
if (k != 0) |
846 | 875 |
fprintf(outfile, ","); |
847 | 876 |
arg = args[k++]; |
Also available in: Unified diff