fold-const.c (extract_muldiv_1): If ctype is unsigned and type signed...
authorJakub Jelinek <jakub@redhat.com>
Sat, 27 Nov 2004 10:13:56 +0000 (11:13 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 27 Nov 2004 10:13:56 +0000 (11:13 +0100)
commit47d42ce2710bf905381c70cf2cd8c7b3495b4af0
treed42b0016cfb2a956039363a27cfd89764e73ef14
parent87980da05e5466d35e0de2b767112896292cd2c9
fold-const.c (extract_muldiv_1): If ctype is unsigned and type signed...

* fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
unsigned and type signed, build ABS_EXPR with signed_type (ctype)
and only afterwards convert to ctype.

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

From-SVN: r91373
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20041126-1.c [new file with mode: 0644]