This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: i386 setcc pattern tweek
- To: Jan Hubicka <jh at suse dot cz>
- Subject: Re: i386 setcc pattern tweek
- From: Richard Henderson <rth at redhat dot com>
- Date: Wed, 17 Oct 2001 10:59:44 -0700
- Cc: gcc-patches at gcc dot gnu dot org, patches at x86-64 dot org
- References: <20011017163439.E31308@atrey.karlin.mff.cuni.cz>
On Wed, Oct 17, 2001 at 04:34:39PM +0200, Jan Hubicka wrote:
> (define_expand "sltgt"
> ! [(set (match_operand:QI 0 "register_operand" "")
> (ltgt:SI (reg:CC 17) (const_int 0)))]
> "TARGET_80387 || TARGET_SSE"
> "if (ix86_expand_setcc (LTGT, operands[0])) DONE; else FAIL;")
One, you should make the source and destination modes match,
even if they aren't really used. Two, you can greatly
simplify ix86_expand_setcc if it only accepts QImode arguments.
r~