This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: i386 setcc pattern tweek


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]