Revision 8a56e840 tcg/tcg-op.h

b/tcg/tcg-op.h
593 593
    }
594 594
}
595 595

  
596
static inline void tcg_gen_brcond_i32(int cond, TCGv_i32 arg1, TCGv_i32 arg2,
597
                                      int label_index)
596
static inline void tcg_gen_brcond_i32(TCGCond cond, TCGv_i32 arg1,
597
                                      TCGv_i32 arg2, int label_index)
598 598
{
599 599
    tcg_gen_op4ii_i32(INDEX_op_brcond_i32, arg1, arg2, cond, label_index);
600 600
}
601 601

  
602
static inline void tcg_gen_brcondi_i32(int cond, TCGv_i32 arg1, int32_t arg2,
603
                                       int label_index)
602
static inline void tcg_gen_brcondi_i32(TCGCond cond, TCGv_i32 arg1,
603
                                       int32_t arg2, int label_index)
604 604
{
605 605
    TCGv_i32 t0 = tcg_const_i32(arg2);
606 606
    tcg_gen_brcond_i32(cond, arg1, t0, label_index);
607 607
    tcg_temp_free_i32(t0);
608 608
}
609 609

  
610
static inline void tcg_gen_setcond_i32(int cond, TCGv_i32 ret,
610
static inline void tcg_gen_setcond_i32(TCGCond cond, TCGv_i32 ret,
611 611
                                       TCGv_i32 arg1, TCGv_i32 arg2)
612 612
{
613 613
    tcg_gen_op4i_i32(INDEX_op_setcond_i32, ret, arg1, arg2, cond);
614 614
}
615 615

  
616
static inline void tcg_gen_setcondi_i32(int cond, TCGv_i32 ret, TCGv_i32 arg1,
617
                                        int32_t arg2)
616
static inline void tcg_gen_setcondi_i32(TCGCond cond, TCGv_i32 ret,
617
                                        TCGv_i32 arg1, int32_t arg2)
618 618
{
619 619
    TCGv_i32 t0 = tcg_const_i32(arg2);
620 620
    tcg_gen_setcond_i32(cond, ret, arg1, t0);
......
895 895
    tcg_gen_shifti_i64(ret, arg1, arg2, 1, 1);
896 896
}
897 897

  
898
static inline void tcg_gen_brcond_i64(int cond, TCGv_i64 arg1, TCGv_i64 arg2,
899
                                      int label_index)
898
static inline void tcg_gen_brcond_i64(TCGCond cond, TCGv_i64 arg1,
899
                                      TCGv_i64 arg2, int label_index)
900 900
{
901 901
    tcg_gen_op6ii_i32(INDEX_op_brcond2_i32,
902 902
                      TCGV_LOW(arg1), TCGV_HIGH(arg1), TCGV_LOW(arg2),
903 903
                      TCGV_HIGH(arg2), cond, label_index);
904 904
}
905 905

  
906
static inline void tcg_gen_setcond_i64(int cond, TCGv_i64 ret,
906
static inline void tcg_gen_setcond_i64(TCGCond cond, TCGv_i64 ret,
907 907
                                       TCGv_i64 arg1, TCGv_i64 arg2)
908 908
{
909 909
    tcg_gen_op6i_i32(INDEX_op_setcond2_i32, TCGV_LOW(ret),
......
1136 1136
    }
1137 1137
}
1138 1138

  
1139
static inline void tcg_gen_brcond_i64(int cond, TCGv_i64 arg1, TCGv_i64 arg2,
1140
                                      int label_index)
1139
static inline void tcg_gen_brcond_i64(TCGCond cond, TCGv_i64 arg1,
1140
                                      TCGv_i64 arg2, int label_index)
1141 1141
{
1142 1142
    tcg_gen_op4ii_i64(INDEX_op_brcond_i64, arg1, arg2, cond, label_index);
1143 1143
}
1144 1144

  
1145
static inline void tcg_gen_setcond_i64(int cond, TCGv_i64 ret,
1145
static inline void tcg_gen_setcond_i64(TCGCond cond, TCGv_i64 ret,
1146 1146
                                       TCGv_i64 arg1, TCGv_i64 arg2)
1147 1147
{
1148 1148
    tcg_gen_op4i_i64(INDEX_op_setcond_i64, ret, arg1, arg2, cond);
......
1263 1263
        tcg_temp_free_i64(t0);
1264 1264
    }
1265 1265
}
1266
static inline void tcg_gen_brcondi_i64(int cond, TCGv_i64 arg1, int64_t arg2,
1267
                                       int label_index)
1266
static inline void tcg_gen_brcondi_i64(TCGCond cond, TCGv_i64 arg1,
1267
                                       int64_t arg2, int label_index)
1268 1268
{
1269 1269
    TCGv_i64 t0 = tcg_const_i64(arg2);
1270 1270
    tcg_gen_brcond_i64(cond, arg1, t0, label_index);
1271 1271
    tcg_temp_free_i64(t0);
1272 1272
}
1273 1273

  
1274
static inline void tcg_gen_setcondi_i64(int cond, TCGv_i64 ret, TCGv_i64 arg1,
1275
                                        int64_t arg2)
1274
static inline void tcg_gen_setcondi_i64(TCGCond cond, TCGv_i64 ret,
1275
                                        TCGv_i64 arg1, int64_t arg2)
1276 1276
{
1277 1277
    TCGv_i64 t0 = tcg_const_i64(arg2);
1278 1278
    tcg_gen_setcond_i64(cond, ret, arg1, t0);

Also available in: Unified diff