projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e2029a
)
NEON vldN optimization
author
Paul Brook
<paul@codesourcery.com>
Fri, 11 Jun 2010 19:01:00 +0000
(20:01 +0100)
committer
Paul Brook
<paul@codesourcery.com>
Fri, 11 Jun 2010 19:37:51 +0000
(20:37 +0100)
When combining multiple values as part of a NEON array load, do explcit
shift/or rather than using gen_bfi. This voids redundant mask
operations.
Signed-off-by: Paul Brook <paul@codesourcery.com>
target-arm/translate.c
patch
|
blob
|
history
diff --git
a/target-arm/translate.c
b/target-arm/translate.c
index 0eccca5cdbbd11e87e0564e834dad01ddc5d7725..a28e2ff33374bd7d240887c62aace6feaa16b572 100644
(file)
--- a/
target-arm/translate.c
+++ b/
target-arm/translate.c
@@
-3854,7
+3854,8
@@
static int disas_neon_ls_insn(CPUState * env, DisasContext *s, uint32_t insn)
tcg_gen_addi_i32(addr, addr, stride);
tmp2 = gen_ld16u(addr, IS_USER(s));
tcg_gen_addi_i32(addr, addr, stride);
- gen_bfi(tmp, tmp, tmp2, 16, 0xffff);
+ tcg_gen_shli_i32(tmp2, tmp2, 16);
+ tcg_gen_or_i32(tmp, tmp, tmp2);
dead_tmp(tmp2);
neon_store_reg(rd, pass, tmp);
} else {
@@
-3875,7
+3876,8
@@
static int disas_neon_ls_insn(CPUState * env, DisasContext *s, uint32_t insn)
if (n == 0) {
tmp2 = tmp;
} else {
- gen_bfi(tmp2, tmp2, tmp, n * 8, 0xff);
+ tcg_gen_shli_i32(tmp, tmp, n * 8);
+ tcg_gen_or_i32(tmp2, tmp2, tmp);
dead_tmp(tmp);
}
}