re PR target/9348 ([HP-UX] error in int to unsigned long multiplication)
authorRoger Sayle <roger@eyesopen.com>
Tue, 3 Feb 2004 21:31:00 +0000 (21:31 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 3 Feb 2004 21:31:00 +0000 (21:31 +0000)
commit888d65b5a81249c56aa92bc2998c798929f29f30
treedf60fe33a838990b239163a30dda629632e31212
parenta8c0bbc7214a44d82448ea5b6d443f53c8b5c43b
re PR target/9348 ([HP-UX] error in int to unsigned long multiplication)

PR target/9348
* expr.c (expand_expr_real) <MULT_EXPR>:  When performing widening
multiplies with a multiplication of the wrong signedness, its the
signedness of the multiplication that we've performed that needs to
be passed to expand_mult_highpart_adjust.  Avoid emitting a nop-move
if expand_mult_highpart_adjust places the result in target.

* gcc.c-torture/execute/multdi-1.c: New test case.

From-SVN: r77192
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/multdi-1.c [new file with mode: 0644]