mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
5321c31bc7
* sim/v850/simops.c (Multiply64): Properly test if we need to negate either of the operands. * sim/testsuite/v850/mul.cgs: New test.
16 lines
216 B
Plaintext
16 lines
216 B
Plaintext
# v850e mul
|
|
# mach: v850e
|
|
# as(v850e): -mv850e
|
|
|
|
.include "testutils.inc"
|
|
|
|
# Trivial regression test for incorrect sign bit handling in mul
|
|
|
|
seti -10, r1
|
|
seti 2, r2
|
|
mul r1, r2, r3
|
|
reg r2, -20
|
|
reg r3, -1
|
|
|
|
pass
|