From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzXDy-0005fj-CH for qemu-devel@nongnu.org; Fri, 12 Dec 2014 15:54:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzXDo-0005VI-Up for qemu-devel@nongnu.org; Fri, 12 Dec 2014 15:54:06 -0500 Received: from mail-qg0-x230.google.com ([2607:f8b0:400d:c04::230]:37053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzXDo-0005VC-Pz for qemu-devel@nongnu.org; Fri, 12 Dec 2014 15:53:56 -0500 Received: by mail-qg0-f48.google.com with SMTP id f51so5935805qge.7 for ; Fri, 12 Dec 2014 12:53:56 -0800 (PST) Sender: Richard Henderson Message-ID: <548B55E0.2020803@twiddle.net> Date: Fri, 12 Dec 2014 12:53:52 -0800 From: Richard Henderson MIME-Version: 1.0 References: <1418405504-11175-1-git-send-email-kbastian@mail.uni-paderborn.de> <1418405504-11175-9-git-send-email-kbastian@mail.uni-paderborn.de> In-Reply-To: <1418405504-11175-9-git-send-email-kbastian@mail.uni-paderborn.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 8/8] target-tricore: Add instructions of RR1 opcode format, that have 0xb3 as first opcode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bastian Koppelmann , qemu-devel@nongnu.org On 12/12/2014 09:31 AM, Bastian Koppelmann wrote: > +#define MUL_H_OP(ARG00, ARG01, ARG10, ARG11) \ > +uint64_t helper_mulh_##ARG00 ##_##ARG01 ##_##ARG10 ##_##ARG11( \ > + CPUTriCoreState *env, target_ulong arg1, target_ulong arg2, \ > + target_ulong n) \ > +{ \ > + uint64_t ret; \ > + uint32_t result0, result1; \ > + int32_t arg00 = sextract32(arg1, ARG00, 16); \ > + int32_t arg01 = sextract32(arg1, ARG01, 16); \ > + int32_t arg10 = sextract32(arg2, ARG10, 16); \ > + int32_t arg11 = sextract32(arg2, ARG11, 16); \ Since these functions only differ in the extraction of the arguments, it'd probably be better to only have 3 helpers instead of 12 and do this extraction in tcg as part of the call. r~