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

2012-02-29 Thread Ramana Radhakrishnan
On 29 February 2012 13:25, Ulrich Weigand wrote: > Ramana Radhakrishnan wrote: >> >    ("SAT", "SATrev"): New code iterators. >> >    ("SATlo", "SAThi"): New code iterator attributes. >> >    ("*satsi_"): New pattern. >> >    ("*satsi__shift"): Likewise. >> >> Iterators must go into iterators.md.

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_"): New pattern. > >("*satsi__shift"): Likewise. > > Iterators must go into iterators.md. Hmm, I left them in arm.md deliberately, because they ap

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_"): New pattern. >        ("*satsi__shift"): Likewise. Iterators must go into iterators.md. Ok with that change for 4.8 if no regressions. Ramana

[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. c