[PATCH, ARM] Generate usat/ssat instructions

2012-02-29 Thread Ulrich Weigand
Hello, this patch adds support for generating usat/ssat instructions to match code along the lines of: if (a amin) return amin; else if (a amax) return amax; else return a; for appropriate values of amin/amax. This type code actually occurs in real-life code (e.g.

Re: [PATCH, ARM] Generate usat/ssat instructions

2012-02-29 Thread Ramana Radhakrishnan
       (SAT, SATrev): New code iterators.        (SATlo, SAThi): New code iterator attributes.        (*satsi_SAT:code): New pattern.        (*satsi_SAT:code_shift): Likewise. Iterators must go into iterators.md. Ok with that change for 4.8 if no regressions. Ramana

Re: [PATCH, ARM] Generate usat/ssat instructions

2012-02-29 Thread Ulrich Weigand
Ramana Radhakrishnan wrote: (SAT, SATrev): New code iterators. (SATlo, SAThi): New code iterator attributes. (*satsi_SAT:code): New pattern. (*satsi_SAT:code_shift): Likewise. Iterators must go into iterators.md. Hmm, I left them in arm.md deliberately, because they apply

Re: [PATCH, ARM] Generate usat/ssat instructions

2012-02-29 Thread Ramana Radhakrishnan
On 29 February 2012 13:25, Ulrich Weigand uweig...@de.ibm.com wrote: Ramana Radhakrishnan wrote:    (SAT, SATrev): New code iterators.    (SATlo, SAThi): New code iterator attributes.    (*satsi_SAT:code): New pattern.    (*satsi_SAT:code_shift): Likewise. Iterators must go into