]> git.proxmox.com Git - mirror_qemu.git/commit
target-ppc: Add VSX xmax/xmin Instructions
authorTom Musta <tommusta@gmail.com>
Thu, 2 Jan 2014 22:21:31 +0000 (16:21 -0600)
committerAlexander Graf <agraf@suse.de>
Wed, 5 Mar 2014 02:06:31 +0000 (03:06 +0100)
commit959e9c9d1e5507a6c68d0b875d71ef967d3cfd6c
tree0a084f1d007779f8d4fdef4bdfe9119a53209eb9
parent4f17e9c738321151e6b7aa4d2c25c3f1e2443cca
target-ppc: Add VSX xmax/xmin Instructions

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 well as one might
think.  Therefore specific routines for comparing 64 and 32
bit floating point numbers are implemented in the PowerPC
helper code.

Signed-off-by: Tom Musta <tommusta@gmail.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/fpu_helper.c
target-ppc/helper.h
target-ppc/translate.c