Revision 8d625cf1 tcg/tcg-op.h
b/tcg/tcg-op.h | ||
---|---|---|
1740 | 1740 |
|
1741 | 1741 |
static inline void tcg_gen_eqv_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2) |
1742 | 1742 |
{ |
1743 |
#ifdef TCG_TARGET_HAS_eqv_i32 |
|
1744 |
tcg_gen_op3_i32(INDEX_op_eqv_i32, ret, arg1, arg2); |
|
1745 |
#else |
|
1743 | 1746 |
tcg_gen_xor_i32(ret, arg1, arg2); |
1744 | 1747 |
tcg_gen_not_i32(ret, ret); |
1748 |
#endif |
|
1745 | 1749 |
} |
1746 | 1750 |
|
1747 | 1751 |
static inline void tcg_gen_eqv_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2) |
1748 | 1752 |
{ |
1753 |
#ifdef TCG_TARGET_HAS_eqv_i64 |
|
1754 |
tcg_gen_op3_i64(INDEX_op_eqv_i64, ret, arg1, arg2); |
|
1755 |
#elif defined(TCG_TARGET_HAS_eqv_i32) && TCG_TARGET_REG_BITS == 32 |
|
1756 |
tcg_gen_eqv_i32(TCGV_LOW(ret), TCGV_LOW(arg1), TCGV_LOW(arg2)); |
|
1757 |
tcg_gen_eqv_i32(TCGV_HIGH(ret), TCGV_HIGH(arg1), TCGV_HIGH(arg2)); |
|
1758 |
#else |
|
1749 | 1759 |
tcg_gen_xor_i64(ret, arg1, arg2); |
1750 | 1760 |
tcg_gen_not_i64(ret, ret); |
1761 |
#endif |
|
1751 | 1762 |
} |
1752 | 1763 |
|
1753 | 1764 |
static inline void tcg_gen_nand_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2) |
Also available in: Unified diff