aboutsummaryrefslogtreecommitdiff
path: root/tcg/tcg.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-21 11:30:45 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-21 11:30:45 +0000
commitbdffd4a9d7254a765e56132587bc814195e094a2 (patch)
tree864d60c29e0f9be4b96ca008095696b3804dbdb4 /tcg/tcg.c
parentcf960816f90559ddf26cb8445e55e9dffeaf5174 (diff)
TCG: add tcg_const_local_tl()
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5504 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcg/tcg.c')
-rw-r--r--tcg/tcg.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 1b7bf5ca3b..9d090f70da 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -475,6 +475,22 @@ TCGv tcg_const_i64(int64_t val)
return t0;
}
+TCGv tcg_const_local_i32(int32_t val)
+{
+ TCGv t0;
+ t0 = tcg_temp_local_new(TCG_TYPE_I32);
+ tcg_gen_movi_i32(t0, val);
+ return t0;
+}
+
+TCGv tcg_const_local_i64(int64_t val)
+{
+ TCGv t0;
+ t0 = tcg_temp_local_new(TCG_TYPE_I64);
+ tcg_gen_movi_i64(t0, val);
+ return t0;
+}
+
void tcg_register_helper(void *func, const char *name)
{
TCGContext *s = &tcg_ctx;