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]
Other format: [Raw text]

Re: [PATCH] SH: New define_split sh.md


On Thu, Oct 30, 2003 at 12:26:40PM +0530, Naveen Sharma, Noida wrote:
> I tried this. Lookibng for surrounding insns in the conditions 
> for splitter doesn't looks clean.
> 
> (define_split
>   [(set (match_operand:SI 0 "arith_reg_operand" "r")
>     (match_operand:SI 1 "const_int_operand" "i"))]
> "TARGET_SH4 && INTVAL (operands[1]) >= 128 && reload_completed" <-- Here
>   [(set (match_dup 0) (match_dup 0))]

In this case it's better to use peep2 instead of splitters.


r~


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