Commit 0b6ce4cffe977387b9d578c97d4bbe4fbbb00468
1 parent
e35298cd
added not pseudo op - more _tl macros
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4468 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
23 additions
and
0 deletions
tcg/tcg-op.h
... | ... | @@ -1226,6 +1226,15 @@ static inline void tcg_gen_neg_i64(TCGv ret, TCGv arg) |
1226 | 1226 | #endif |
1227 | 1227 | } |
1228 | 1228 | |
1229 | +static inline void tcg_gen_not_i32(TCGv ret, TCGv arg) | |
1230 | +{ | |
1231 | + tcg_gen_xor_i32(ret, arg, tcg_const_i32(-1)); | |
1232 | +} | |
1233 | + | |
1234 | +static inline void tcg_gen_not_i64(TCGv ret, TCGv arg) | |
1235 | +{ | |
1236 | + tcg_gen_xor_i64(ret, arg, tcg_const_i64(-1)); | |
1237 | +} | |
1229 | 1238 | |
1230 | 1239 | static inline void tcg_gen_discard_i32(TCGv arg) |
1231 | 1240 | { |
... | ... | @@ -1467,6 +1476,7 @@ static inline void tcg_gen_qemu_st64(TCGv arg, TCGv addr, int mem_index) |
1467 | 1476 | #define tcg_gen_ori_tl tcg_gen_ori_i64 |
1468 | 1477 | #define tcg_gen_xor_tl tcg_gen_xor_i64 |
1469 | 1478 | #define tcg_gen_xori_tl tcg_gen_xori_i64 |
1479 | +#define tcg_gen_not_tl tcg_gen_not_i64 | |
1470 | 1480 | #define tcg_gen_shl_tl tcg_gen_shl_i64 |
1471 | 1481 | #define tcg_gen_shli_tl tcg_gen_shli_i64 |
1472 | 1482 | #define tcg_gen_shr_tl tcg_gen_shr_i64 |
... | ... | @@ -1483,6 +1493,12 @@ static inline void tcg_gen_qemu_st64(TCGv arg, TCGv addr, int mem_index) |
1483 | 1493 | #define tcg_gen_ext_i32_tl tcg_gen_ext_i32_i64 |
1484 | 1494 | #define tcg_gen_extu_tl_i64 tcg_gen_mov_i64 |
1485 | 1495 | #define tcg_gen_ext_tl_i64 tcg_gen_mov_i64 |
1496 | +#define tcg_gen_ext8u_tl tcg_gen_ext8u_i64 | |
1497 | +#define tcg_gen_ext8s_tl tcg_gen_ext8s_i64 | |
1498 | +#define tcg_gen_ext16u_tl tcg_gen_ext16u_i64 | |
1499 | +#define tcg_gen_ext16s_tl tcg_gen_ext16s_i64 | |
1500 | +#define tcg_gen_ext32u_tl tcg_gen_ext32u_i64 | |
1501 | +#define tcg_gen_ext32s_tl tcg_gen_ext32s_i64 | |
1486 | 1502 | #define tcg_const_tl tcg_const_i64 |
1487 | 1503 | #else |
1488 | 1504 | #define TCG_TYPE_TL TCG_TYPE_I32 |
... | ... | @@ -1510,6 +1526,7 @@ static inline void tcg_gen_qemu_st64(TCGv arg, TCGv addr, int mem_index) |
1510 | 1526 | #define tcg_gen_ori_tl tcg_gen_ori_i32 |
1511 | 1527 | #define tcg_gen_xor_tl tcg_gen_xor_i32 |
1512 | 1528 | #define tcg_gen_xori_tl tcg_gen_xori_i32 |
1529 | +#define tcg_gen_not_tl tcg_gen_not_i32 | |
1513 | 1530 | #define tcg_gen_shl_tl tcg_gen_shl_i32 |
1514 | 1531 | #define tcg_gen_shli_tl tcg_gen_shli_i32 |
1515 | 1532 | #define tcg_gen_shr_tl tcg_gen_shr_i32 |
... | ... | @@ -1526,6 +1543,12 @@ static inline void tcg_gen_qemu_st64(TCGv arg, TCGv addr, int mem_index) |
1526 | 1543 | #define tcg_gen_ext_i32_tl tcg_gen_mov_i32 |
1527 | 1544 | #define tcg_gen_extu_tl_i64 tcg_gen_extu_i32_i64 |
1528 | 1545 | #define tcg_gen_ext_tl_i64 tcg_gen_ext_i32_i64 |
1546 | +#define tcg_gen_ext8u_tl tcg_gen_ext8u_i32 | |
1547 | +#define tcg_gen_ext8s_tl tcg_gen_ext8s_i32 | |
1548 | +#define tcg_gen_ext16u_tl tcg_gen_ext16u_i32 | |
1549 | +#define tcg_gen_ext16s_tl tcg_gen_ext16s_i32 | |
1550 | +#define tcg_gen_ext32u_tl tcg_gen_mov_i32 | |
1551 | +#define tcg_gen_ext32s_tl tcg_gen_mov_i32 | |
1529 | 1552 | #define tcg_const_tl tcg_const_i32 |
1530 | 1553 | #endif |
1531 | 1554 | ... | ... |