OSDN Git Service

PR target/15693
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 May 2004 21:34:26 +0000 (21:34 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 May 2004 21:34:26 +0000 (21:34 +0000)
commitf94175587902c17989ad6545bcb27099c2ee1f5d
treed91d56afe424dca67642ecfc22d5d221aeaf7799
parent334f6ce156d98fd9e492d39059919b9e6684fb8a
PR target/15693
* config/sparc/sparc.c (compare_operand): New predicate.
* config/sparc/sparc.h (PREDICATE_CODES): Add it.
* config/sparc/sparc.md (cmpsi expander): Use it.  If the first
operand is a ZERO_EXTRACT and the second operand is not zero,
force the former to a register.
(cmpdi expander): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82500 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/sparc/sparc.c
gcc/config/sparc/sparc.h
gcc/config/sparc/sparc.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/sparc-trap-1.c [new file with mode: 0644]