Re: [Qemu-devel] [V4 PATCH 18/22] target-ppc: Add VSX xmax/xmin Instructions

2013-12-24 Thread Richard Henderson
On 12/18/2013 12:19 PM, Tom Musta wrote: +if (unlikely(tp##_is_any_nan(xa.fld[i]) || \ + tp##_is_any_nan(xb.fld[i]))) { \ +if (tp##_is_signaling_nan(xa.fld[i])) { \ +

[Qemu-devel] [V4 PATCH 18/22] target-ppc: Add VSX xmax/xmin Instructions

2013-12-18 Thread Tom Musta
This patch adds the VSX floating point maximum and minimum instructions: - xsmaxdp, xvmaxdp, xvmaxsp - xsmindp, xvmindp, xvminsp Because of the Power ISA definitions of maximum and minimum on various boundary cases, the standard softfloat comparison routines (e.g. float64_lt) do not work as