projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c02244a
)
tcg: Use not_i32 to implement not_i64.
author
Richard Henderson
<rth@twiddle.net>
Fri, 19 Mar 2010 19:44:47 +0000
(12:44 -0700)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Fri, 26 Mar 2010 20:29:12 +0000
(21:29 +0100)
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tcg/tcg-op.h
patch
|
blob
|
history
diff --git
a/tcg/tcg-op.h
b/tcg/tcg-op.h
index e2873ffc174713e021116c8f2da5c28beaa30de5..f15c80351b47c653aaf7b34419af307749bb06ce 100644
(file)
--- a/
tcg/tcg-op.h
+++ b/
tcg/tcg-op.h
@@
-1653,6
+1653,9
@@
static inline void tcg_gen_not_i64(TCGv_i64 ret, TCGv_i64 arg)
{
#ifdef TCG_TARGET_HAS_not_i64
tcg_gen_op2_i64(INDEX_op_not_i64, ret, arg);
+#elif defined(TCG_TARGET_HAS_not_i32) && TCG_TARGET_REG_BITS == 32
+ tcg_gen_not_i32(TCGV_LOW(ret), TCGV_LOW(arg));
+ tcg_gen_not_i32(TCGV_HIGH(ret), TCGV_HIGH(arg));
#else
tcg_gen_xori_i64(ret, arg, -1);
#endif