PR bootstrap/13848
commit960670fc656e0024b5843553a8d536d387048610
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 24 Jan 2004 20:54:58 +0000 (24 20:54 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 24 Jan 2004 20:54:58 +0000 (24 20:54 +0000)
treeb55b45fc6481bcaff82c645136aa4dcc68c3903b
parent345ecef4d5ae14f3ab485a8763bf27d3b066b3d1
PR bootstrap/13848
* cse.c (cse_cc_succs): Change the mode of the source expression
as soon as decide we need a new mode.  Don't permit changing modes
if we found a match in a successor block.
(cse_condition_code_reg): Save original mode of source expression
so that we know whether we have to change the mode in other
insns.

* gcc.dg/20040124-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76522 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20040124-1.c [new file with mode: 0644]