qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fabrice Bellard <fabrice@bellard.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [4468] added not pseudo op - more _tl macros
Date: Sat, 17 May 2008 12:40:49 +0000	[thread overview]
Message-ID: <E1JxLiT-00018T-C0@cvs.savannah.gnu.org> (raw)

Revision: 4468
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4468
Author:   bellard
Date:     2008-05-17 12:40:44 +0000 (Sat, 17 May 2008)

Log Message:
-----------
added not pseudo op - more _tl macros

Modified Paths:
--------------
    trunk/tcg/tcg-op.h

Modified: trunk/tcg/tcg-op.h
===================================================================
--- trunk/tcg/tcg-op.h	2008-05-17 09:43:12 UTC (rev 4467)
+++ trunk/tcg/tcg-op.h	2008-05-17 12:40:44 UTC (rev 4468)
@@ -1226,7 +1226,16 @@
 #endif
 }
 
+static inline void tcg_gen_not_i32(TCGv ret, TCGv arg)
+{
+    tcg_gen_xor_i32(ret, arg, tcg_const_i32(-1));
+}
 
+static inline void tcg_gen_not_i64(TCGv ret, TCGv arg)
+{
+    tcg_gen_xor_i64(ret, arg, tcg_const_i64(-1));
+}
+
 static inline void tcg_gen_discard_i32(TCGv arg)
 {
     tcg_gen_op1(INDEX_op_discard, arg);
@@ -1467,6 +1476,7 @@
 #define tcg_gen_ori_tl tcg_gen_ori_i64
 #define tcg_gen_xor_tl tcg_gen_xor_i64
 #define tcg_gen_xori_tl tcg_gen_xori_i64
+#define tcg_gen_not_tl tcg_gen_not_i64
 #define tcg_gen_shl_tl tcg_gen_shl_i64
 #define tcg_gen_shli_tl tcg_gen_shli_i64
 #define tcg_gen_shr_tl tcg_gen_shr_i64
@@ -1483,6 +1493,12 @@
 #define tcg_gen_ext_i32_tl tcg_gen_ext_i32_i64
 #define tcg_gen_extu_tl_i64 tcg_gen_mov_i64
 #define tcg_gen_ext_tl_i64 tcg_gen_mov_i64
+#define tcg_gen_ext8u_tl tcg_gen_ext8u_i64
+#define tcg_gen_ext8s_tl tcg_gen_ext8s_i64
+#define tcg_gen_ext16u_tl tcg_gen_ext16u_i64
+#define tcg_gen_ext16s_tl tcg_gen_ext16s_i64
+#define tcg_gen_ext32u_tl tcg_gen_ext32u_i64
+#define tcg_gen_ext32s_tl tcg_gen_ext32s_i64
 #define tcg_const_tl tcg_const_i64
 #else
 #define TCG_TYPE_TL TCG_TYPE_I32
@@ -1510,6 +1526,7 @@
 #define tcg_gen_ori_tl tcg_gen_ori_i32
 #define tcg_gen_xor_tl tcg_gen_xor_i32
 #define tcg_gen_xori_tl tcg_gen_xori_i32
+#define tcg_gen_not_tl tcg_gen_not_i32
 #define tcg_gen_shl_tl tcg_gen_shl_i32
 #define tcg_gen_shli_tl tcg_gen_shli_i32
 #define tcg_gen_shr_tl tcg_gen_shr_i32
@@ -1526,6 +1543,12 @@
 #define tcg_gen_ext_i32_tl tcg_gen_mov_i32
 #define tcg_gen_extu_tl_i64 tcg_gen_extu_i32_i64
 #define tcg_gen_ext_tl_i64 tcg_gen_ext_i32_i64
+#define tcg_gen_ext8u_tl tcg_gen_ext8u_i32
+#define tcg_gen_ext8s_tl tcg_gen_ext8s_i32
+#define tcg_gen_ext16u_tl tcg_gen_ext16u_i32
+#define tcg_gen_ext16s_tl tcg_gen_ext16s_i32
+#define tcg_gen_ext32u_tl tcg_gen_mov_i32
+#define tcg_gen_ext32s_tl tcg_gen_mov_i32
 #define tcg_const_tl tcg_const_i32
 #endif
 

                 reply	other threads:[~2008-05-17 12:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1JxLiT-00018T-C0@cvs.savannah.gnu.org \
    --to=fabrice@bellard.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).