Fix umulh and smulh bugs. Fix bugs in last week's sumov.s testsuite.
authorJim Wilson <jim.wilson@linaro.org>
Fri, 3 Mar 2017 21:10:45 +0000 (13:10 -0800)
committerJim Wilson <jim.wilson@linaro.org>
Fri, 3 Mar 2017 21:10:45 +0000 (13:10 -0800)
commit8ecbe595e69a84a0e3053884832d63af37113680
treece6ff5924c03fd1d2287b713bb8150aaeccc4def
parentdf97be551faa262732128493c8ac159ae4b7f6d3
Fix umulh and smulh bugs.  Fix bugs in last week's sumov.s testsuite.

sim/aarch64/
* simulator.c (mul64hi): Shift carry left by 32.
(smulh): Change signum to negate.  If negate, invert result, and add
carry bit if low part of multiply result is zero.

sim/testsuite/sim/aarch64/
* sumov.s: Correct compare test values.
* sumulh.s: New.
sim/aarch64/ChangeLog
sim/aarch64/simulator.c
sim/testsuite/sim/aarch64/ChangeLog
sim/testsuite/sim/aarch64/sumov.s
sim/testsuite/sim/aarch64/sumulh.s [new file with mode: 0644]