qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jose Ricardo Ziviani <joserz@linux.vnet.ibm.com>
To: qemu-ppc@nongnu.org
Cc: qemu-devel@nongnu.org, david@gibson.dropbear.id.au,
	nikunj@linux.vnet.ibm.com
Subject: [Qemu-devel] [PATCH v6 0/2] POWER9 TCG enablements - BCD functions - final part
Date: Thu, 12 Jan 2017 18:08:31 -0200	[thread overview]
Message-ID: <1484251713-25560-1-git-send-email-joserz@linux.vnet.ibm.com> (raw)

v6:
 - improves bcdtrunc/bcdutrunc overflow comparison
 - removes bcds/bcdus/bcdsr applied patches

v5:
 - removes 'unlikely' gcc branch pred. hints from not unlikely places
 - adds comments in host-utils functions
 - adds more test cases for shift functions
 - handles "shift backwards" with signed shifts
 - rebases branch

v4:
 - improves functions to behave exactly like the target

v3:
 - moves shift functions to host-utils.c and added config_int128 guard
 - changes Makefile to always compile host-utils.c
 - redesigns bcd[u]trunc to use bitwise operations
 - removes "target-ppc: Implement bcd_is_valid function" (merged)

v2:
 - bcd[s,sr,us] uses 1 byte for shifting instead of 4 bytes
 - left/right functions in host-utils are out of CONFIG_INT128
 - fixes overflowing issue in left shift and added a testcase

This serie contains 5 new instructions for POWER9 ISA3.0, left/right shifts for 
unsigned quadwords and a small improvement to check whether a bcd value is 
valid or not.

bcdtrunc.: Decimal signed trucate
bcdutrunc.: Decimal unsigned truncate

Jose Ricardo Ziviani (2):
  ppc: Implement bcdtrunc. instruction
  ppc: Implement bcdutrunc. instruction

 target/ppc/helper.h                 |  2 +
 target/ppc/int_helper.c             | 88 +++++++++++++++++++++++++++++++++++++
 target/ppc/translate/vmx-impl.inc.c |  9 ++++
 target/ppc/translate/vmx-ops.inc.c  |  6 +--
 4 files changed, 102 insertions(+), 3 deletions(-)

-- 
2.7.4

             reply	other threads:[~2017-01-12 20:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-12 20:08 Jose Ricardo Ziviani [this message]
2017-01-12 20:08 ` [Qemu-devel] [PATCH v6 1/2] ppc: Implement bcdtrunc. instruction Jose Ricardo Ziviani
2017-01-12 20:08 ` [Qemu-devel] [PATCH v6 2/2] ppc: Implement bcdutrunc. instruction Jose Ricardo Ziviani
2017-01-12 23:32 ` [Qemu-devel] [PATCH v6 0/2] POWER9 TCG enablements - BCD functions - final part David Gibson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1484251713-25560-1-git-send-email-joserz@linux.vnet.ibm.com \
    --to=joserz@linux.vnet.ibm.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=nikunj@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).