projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08d64e0
)
target/alpha: optimize gen_cvtlq() using deposit op
author
Philippe Mathieu-Daudé
<f4bug@amsat.org>
Tue, 18 Jul 2017 04:55:39 +0000
(
01:55
-0300)
committer
Richard Henderson
<rth@twiddle.net>
Wed, 19 Jul 2017 21:45:16 +0000
(14:45 -0700)
Suggested-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <
20170718045540
.16322-10-f4bug@amsat.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
target/alpha/translate.c
patch
|
blob
|
history
diff --git
a/target/alpha/translate.c
b/target/alpha/translate.c
index 90e6d5285f0affd1f7f84670472fee0341a6f7c9..744d8bbf125d90972b9ecb69fdc5f2c6727394ce 100644
(file)
--- a/
target/alpha/translate.c
+++ b/
target/alpha/translate.c
@@
-783,11
+783,9
@@
static void gen_cvtlq(TCGv vc, TCGv vb)
/* The arithmetic right shift here, plus the sign-extended mask below
yields a sign-extended result without an explicit ext32s_i64. */
- tcg_gen_sari_i64(tmp, vb, 32);
- tcg_gen_shri_i64(vc, vb, 29);
- tcg_gen_andi_i64(tmp, tmp, (int32_t)0xc0000000);
- tcg_gen_andi_i64(vc, vc, 0x3fffffff);
- tcg_gen_or_i64(vc, vc, tmp);
+ tcg_gen_shri_i64(tmp, vb, 29);
+ tcg_gen_sari_i64(vc, vb, 32);
+ tcg_gen_deposit_i64(vc, vc, tmp, 0, 30);
tcg_temp_free(tmp);
}