diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-06-18 21:58:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-06-18 21:58:08 +0000 |
commit | d5fcd950e4f812deac7669190b30efd1781a1266 (patch) | |
tree | 60101f87751df65b70b07e99e140c3f91aa4fd45 /sim/bfin/bfin-sim.c | |
parent | a56a195412e4998a0b59d4610aaaec3df55784d2 (diff) | |
download | gdb-d5fcd950e4f812deac7669190b30efd1781a1266.zip gdb-d5fcd950e4f812deac7669190b30efd1781a1266.tar.gz gdb-d5fcd950e4f812deac7669190b30efd1781a1266.tar.bz2 |
sim: bfin: do not extend accumulator in LSHIFT insns
The logical shift insn does not sign extend before shifting, so
we shouldn't either.
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/bfin/bfin-sim.c')
-rw-r--r-- | sim/bfin/bfin-sim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/bfin/bfin-sim.c b/sim/bfin/bfin-sim.c index 20602b7..2c71f6c 100644 --- a/sim/bfin/bfin-sim.c +++ b/sim/bfin/bfin-sim.c @@ -5230,7 +5230,7 @@ decode_dsp32shift_0 (SIM_CPU *cpu, bu16 iw0, bu16 iw1) HLs = !!HLs; TRACE_INSN (cpu, "A%i = LSHIFT A%i BY R%i.L;", HLs, HLs, src0); - val = get_extended_acc (cpu, HLs); + val = get_unextended_acc (cpu, HLs); if (shft <= 0) val = lshiftrt (cpu, val, -shft, 40); |