aboutsummaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2009-07-18 11:15:40 +0200
committerAurelien Jarno <aurelien@aurel32.net>2009-07-18 11:47:51 +0200
commit3b72617c9a8039fb6a08dd0b212bb916cc597d54 (patch)
tree1d3356937edbf688749770d30b3f8dc7a44ad1c8 /tcg
parent9359d0e65e68551f10f74d0c827f9c8fdb5d799d (diff)
tcg: Fix tcg_gen_rotr_i64
Reported-by: Laurent Desnogues <laurent.desnogues@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'tcg')
-rw-r--r--tcg/tcg-op.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h
index daeb025a69..f3f2f711f1 100644
--- a/tcg/tcg-op.h
+++ b/tcg/tcg-op.h
@@ -1749,7 +1749,7 @@ static inline void tcg_gen_rotr_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
t0 = tcg_temp_new_i64();
t1 = tcg_temp_new_i64();
- tcg_gen_shl_i64(t0, arg1, arg2);
+ tcg_gen_shr_i64(t0, arg1, arg2);
tcg_gen_subfi_i64(t1, 64, arg2);
tcg_gen_shl_i64(t1, arg1, t1);
tcg_gen_or_i64(ret, t0, t1);