Re: Doubt about filling delay slot

2008-04-11 Thread Mohamed Shafi
On Tue, Apr 8, 2008 at 8:32 PM, Ian Lance Taylor [EMAIL PROTECTED] wrote: Mohamed Shafi [EMAIL PROTECTED] writes: Like you said i tried to split the move_immediate pattern after reload. This is how i did this : (define_split [(set (match_operand:HI 0 register_operand )

Re: Doubt about filling delay slot

2008-04-08 Thread Mohamed Shafi
On Thu, Apr 3, 2008 at 8:28 PM, Ian Lance Taylor [EMAIL PROTECTED] wrote: Mohamed Shafi [EMAIL PROTECTED] writes: On Thu, Apr 3, 2008 at 7:35 PM, Ian Lance Taylor [EMAIL PROTECTED] wrote: Mohamed Shafi [EMAIL PROTECTED] writes: Say the target has two delay slots for call

Re: Doubt about filling delay slot

2008-04-08 Thread Ian Lance Taylor
Mohamed Shafi [EMAIL PROTECTED] writes: Like you said i tried to split the move_immediate pattern after reload. This is how i did this : (define_split [(set (match_operand:HI 0 register_operand ) (match_operand:HI 1 immediate_operand ))] reload_completed [(set (match_dup 0)

Re: Doubt about filling delay slot

2008-04-08 Thread Jim Wilson
Mohamed Shafi wrote: 'liu' will load the immediate value into the upper byte of the specified register. The lower byte of the register is unaffected. The liu pattern should be something like (set (regX) (ior:HI (and:HI (regX) (const_int 255)) (const_int Y))) Jim

Doubt about filling delay slot

2008-04-03 Thread Mohamed Shafi
Hello all, It is not necessary that a pattern with a single constrain will have only one instruction in the template. Say if the pattern A have two instructions in the template and pattern B has one instruction in the template and the target has only two delay slots will i be able to tell gcc

Re: Doubt about filling delay slot

2008-04-03 Thread Ian Lance Taylor
Mohamed Shafi [EMAIL PROTECTED] writes: It is not necessary that a pattern with a single constrain will have only one instruction in the template. Say if the pattern A have two instructions in the template and pattern B has one instruction in the template and the target has only two delay

Re: Doubt about filling delay slot

2008-04-03 Thread Mohamed Shafi
On Thu, Apr 3, 2008 at 6:49 PM, Ian Lance Taylor [EMAIL PROTECTED] wrote: Mohamed Shafi [EMAIL PROTECTED] writes: It is not necessary that a pattern with a single constrain will have only one instruction in the template. Say if the pattern A have two instructions in the template and

Re: Doubt about filling delay slot

2008-04-03 Thread Mohamed Shafi
On Thu, Apr 3, 2008 at 7:35 PM, Ian Lance Taylor [EMAIL PROTECTED] wrote: Mohamed Shafi [EMAIL PROTECTED] writes: Say the target has two delay slots for call instructions. So we can have something like this (define_attr slottable no,yes,has_slot (const_string yes)) (define_delay

Re: Doubt about filling delay slot

2008-04-03 Thread Ian Lance Taylor
Mohamed Shafi [EMAIL PROTECTED] writes: Say the target has two delay slots for call instructions. So we can have something like this (define_attr slottable no,yes,has_slot (const_string yes)) (define_delay (eq_attr slottable has_slot) [(eq_attr slottable yes) (nil) (nil) (eq_attr

Re: Doubt about filling delay slot

2008-04-03 Thread Boris Boesler
Am 03.04.2008 um 16:22 schrieb Mohamed Shafi: On Thu, Apr 3, 2008 at 7:35 PM, Ian Lance Taylor [EMAIL PROTECTED] wrote: Mohamed Shafi [EMAIL PROTECTED] writes: Now imagine that i have 3 patterns : Pattern A with two instructions in its template, Pattern B and Pattern C with only one

Re: Doubt about filling delay slot

2008-04-03 Thread Ian Lance Taylor
Mohamed Shafi [EMAIL PROTECTED] writes: On Thu, Apr 3, 2008 at 7:35 PM, Ian Lance Taylor [EMAIL PROTECTED] wrote: Mohamed Shafi [EMAIL PROTECTED] writes: Say the target has two delay slots for call instructions. So we can have something like this (define_attr slottable no,yes,has_slot