Re: SImode and PSImode question

2007-09-12 Thread Andrew Pinski
On 9/11/07, Jim Wilson <[EMAIL PROTECTED]> wrote: > It does look like loop-iv.c is broken though. Every > simplify_gen_relational call uses SImode. That probably should be > word_mode instead. You might want to submit a bug report for that. I think even using word_mode there is wrong. An examp

Re: SImode and PSImode question

2007-09-11 Thread DJ Delorie
Jim Wilson <[EMAIL PROTECTED]> writes: > I'm not sure if anyone has ever done this before. The > assembler/linker/etc have no support for odd sized variables. > Usually the partial int modes were just used internal to gcc. For > instance, if you have 24-bit address registers, you would use 32-bi

Re: SImode and PSImode question

2007-09-11 Thread Jim Wilson
Tal Agmon wrote: I see many references in gcc code to SImode. Isn't this problematic for ports such as this when SImode does not represent the natural int? In the gcc dir, "grep SImode *.[ch] | wc" shows only 67 lines. That isn't a large number relatively speaking. Many of these are in commen

SImode and PSImode question

2007-09-11 Thread Tal Agmon
Hi, I'm working on a port in which BITS_PER_UNIT is 16, Therefore HImode represent 32 bits int and SImode is actually long long. I see many references in gcc code to SImode. Isn't this problematic for ports such as this when SImode does not represent the natural int? I would like to define PSImod