]> git.proxmox.com Git - mirror_qemu.git/commit - target-ppc/int_helper.c
target-ppc: Altivec 2.07: Doubleword Compares
authorTom Musta <tommusta@gmail.com>
Wed, 12 Feb 2014 21:23:13 +0000 (15:23 -0600)
committerAlexander Graf <agraf@suse.de>
Wed, 5 Mar 2014 02:06:58 +0000 (03:06 +0100)
commit6f3dab41fb9ecf1caf9779644e4267af6570dd71
treedd05693966e7d92d27177487aa57acfa9c56e893
parent4d82038e4198cdb8aacdf1d605c69cef29748761
target-ppc: Altivec 2.07: Doubleword Compares

This patch adds the Vector Compare Doubleword instructions introduced
by Power ISA Version 2.07:

  - Vector Compare Equal to Unsigned Doubleword (vcmpequd)
  - Vector Compare Greater Than Signed Doubleword (vcmpgtsd)
  - Vector Compare Greater Than Unsigned Doubleword (vcmpgtud)

These instructions are encoded with bit 31 set to 1 and so are duals with
vcmpeqfp, vcmpgtfp and vcmpbfp respectively.

The helper macro for integer compares is enhanced to account for 64-bit
operands.

Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/helper.h
target-ppc/int_helper.c
target-ppc/translate.c