From: Richard Henderson <rth@twiddle.net>
To: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2 2/8] target-tricore: Add instructions of RR opcode format, that have 0xb as the first opcode
Date: Wed, 17 Dec 2014 09:47:06 -0600 [thread overview]
Message-ID: <5491A57A.20707@twiddle.net> (raw)
In-Reply-To: <1418831961-27658-3-git-send-email-kbastian@mail.uni-paderborn.de>
On 12/17/2014 09:59 AM, Bastian Koppelmann wrote:
> Add instructions of RR opcode format, that have 0xb as the first opcode.
> Add helper functions, for hword and byte arithmetics:
> * add_h_ssov/suov: Add two halfword and saturate on overflow.
> * sub_h_ssov/suov: Sub two halfword and saturate on overflow.
> * absdif_h_ssov: Compute absolute difference for halfwords and saturate on overflow.
> * abs_h_ssov/suov: Compute absolute value for two halfwords and saturate on overflow.
> * abs_b/h: Compute absolute value for four/two bytes/halfwords
> * absdif_b/h: Compute absolute difference for four/two bytes/halfwords
> * add_b/h: Add four/two bytes/halfwords.
> * sub_b/h: Sub four/two bytes/halfwords.
> * eq_b/h: Compare four/two bytes/halfwords with four/two bytes/halfwords on
> equality and set all bits of to either one ore zero.
> * eqany_b/h: Compare four/two bytes/halfwords with four/two bytes/halfwords on equality.
> * lt_b/bu/h/hu: Compare four/two bytes/halfwords with four/two bytes/halfwords
> on less than signed and unsigned.
> * max_b/bu/h/hu: Calculate max for four/two bytes/halfwords signed and unsigned.
> * min_b/bu/h/hu: Calculate min for four/two bytes/halfwords signed and unsigned.
> Add helper function abs_ssov, that computes the absolute value for a 32 bit integer and saturates on overflow.
> Add microcode generator functions:
> * gen_sub_CC: Caluclates sub and sets the carry bit.
> * gen_subc_CC: Caluclates sub and carry and sets the carry bit
> * gen_abs: Compute absolute value for a 32 bit integer.
> * gen_cond_w: Compares two 32 bit values on cond and sets result either zero or all bits one.
>
> OPC2_32_RR_MIN switched with OPC2_32_RR_MIN_U.
>
> Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
> ---
> v1 -> v2:
> - gen_cond_w now uses neg and saves a temp.
> - SSOV16/SUOV16 are now regular functions.
> - Use TCG_CALL_NO_RWG_SE for all helpers not using globals.
Reviewed-by: Richard Henderson <rth@twiddle.net>
r~
next prev parent reply other threads:[~2014-12-17 15:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-17 15:59 [Qemu-devel] [PATCH v2 0/8] TriCore add instructions of RR and RR1 opcode format Bastian Koppelmann
2014-12-17 15:59 ` [Qemu-devel] [PATCH v2 1/8] target-tricore: Change SSOV/SUOV makro name to SSOV32/SUOV32 Bastian Koppelmann
2014-12-17 15:42 ` Richard Henderson
2014-12-17 15:59 ` [Qemu-devel] [PATCH v2 2/8] target-tricore: Add instructions of RR opcode format, that have 0xb as the first opcode Bastian Koppelmann
2014-12-17 15:47 ` Richard Henderson [this message]
2014-12-17 15:59 ` [Qemu-devel] [PATCH v2 3/8] target-tricore: Add instructions of RR opcode format, that have 0xf " Bastian Koppelmann
2014-12-17 15:48 ` Richard Henderson
2014-12-17 15:59 ` [Qemu-devel] [PATCH v2 4/8] target-tricore: Add instructions of RR opcode format, that have 0x1 " Bastian Koppelmann
2014-12-17 15:59 ` [Qemu-devel] [PATCH v2 5/8] target-tricore: Add instructions of RR opcode format, that have 0x4b " Bastian Koppelmann
2014-12-17 15:51 ` Richard Henderson
2014-12-17 15:59 ` [Qemu-devel] [PATCH v2 6/8] target-tricore: Add missing 1.6 insn of BOL opcode format Bastian Koppelmann
2014-12-17 15:59 ` [Qemu-devel] [PATCH v2 7/8] target-tricore: Fix MFCR/MTCR insn and B format offset Bastian Koppelmann
2014-12-17 15:59 ` [Qemu-devel] [PATCH v2 8/8] target-tricore: Add instructions of RR1 opcode format, that have 0xb3 as first opcode Bastian Koppelmann
2014-12-17 16:08 ` Richard Henderson
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=5491A57A.20707@twiddle.net \
--to=rth@twiddle.net \
--cc=kbastian@mail.uni-paderborn.de \
--cc=qemu-devel@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).