From patchwork Fri Feb 28 16:43:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taylor Simpson X-Patchwork-Id: 11412975 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ADB9E924 for ; Fri, 28 Feb 2020 17:12:51 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 74D1C2469F for ; Fri, 28 Feb 2020 17:12:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="MjQdbp7Y" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 74D1C2469F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=quicinc.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:51064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7jBy-0006Vn-LV for patchwork-qemu-devel@patchwork.kernel.org; Fri, 28 Feb 2020 12:12:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58229) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7ilU-0004aK-6m for qemu-devel@nongnu.org; Fri, 28 Feb 2020 11:45:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j7ilR-0006Zt-PF for qemu-devel@nongnu.org; Fri, 28 Feb 2020 11:45:28 -0500 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:27035) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j7ikx-0005Ug-GR for qemu-devel@nongnu.org; Fri, 28 Feb 2020 11:45:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1582908295; x=1614444295; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LjVlt9UZyqVcqs+j/UGyhiCDT05agXUZoLmHPxZ6vJw=; b=MjQdbp7YqpHFH8Qr/N5erJDtC/yJtqsgO0LbXer/yNJn0+RTBA5Rs75g lYuL460vZqmyI7oiVuf84KVArZF3UV3IE5Dsu1FRJrUODCKv+sJzeOX8x FXNB4h6sHPlzo8/b7Nkc5zxjQNrZtkYfm0F/XVgAw2DCuaZRPHyksoGUM k=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 28 Feb 2020 08:44:32 -0800 Received: from vu-tsimpson-aus.qualcomm.com (HELO vu-tsimpson1-aus.qualcomm.com) ([10.222.150.1]) by ironmsg-SD-alpha.qualcomm.com with ESMTP; 28 Feb 2020 08:44:31 -0800 Received: by vu-tsimpson1-aus.qualcomm.com (Postfix, from userid 47164) id 5EB8C1163; Fri, 28 Feb 2020 10:44:31 -0600 (CST) From: Taylor Simpson To: qemu-devel@nongnu.org Subject: [RFC PATCH v2 41/67] Hexagon TCG generation - step 03 Date: Fri, 28 Feb 2020 10:43:37 -0600 Message-Id: <1582908244-304-42-git-send-email-tsimpson@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582908244-304-1-git-send-email-tsimpson@quicinc.com> References: <1582908244-304-1-git-send-email-tsimpson@quicinc.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 199.106.114.39 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: riku.voipio@iki.fi, richard.henderson@linaro.org, laurent@vivier.eu, Taylor Simpson , philmd@redhat.com, aleksandar.m.mail@gmail.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" Override predicated load instructions Signed-off-by: Taylor Simpson --- target/hexagon/helper_overrides.h | 235 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 235 insertions(+) diff --git a/target/hexagon/helper_overrides.h b/target/hexagon/helper_overrides.h index 6a69fc6..20d8584 100644 --- a/target/hexagon/helper_overrides.h +++ b/target/hexagon/helper_overrides.h @@ -401,4 +401,239 @@ #define fWRAP_L2_loadalignb_pi(GENHLPR, SHORTCODE) \ fWRAP_loadalignb(GET_EA_pi) +/* + * Predicated loads + * Here is a primer to understand the tag names + * + * Predicate used + * t true "old" value if (p0) r0 = memb(r2+#0) + * f false "old" value if (!p0) r0 = memb(r2+#0) + * tnew true "new" value if (p0.new) r0 = memb(r2+#0) + * fnew false "new" value if (!p0.new) r0 = memb(r2+#0) + */ +#define fWRAP_PRED_LOAD(GET_EA, PRED, SIZE, SIGN) \ + do { \ + TCGv LSB = tcg_temp_local_new(); \ + TCGLabel *label = gen_new_label(); \ + GET_EA; \ + PRED; \ + PRED_LOAD_CANCEL(LSB, EA); \ + tcg_gen_movi_tl(RdV, 0); \ + tcg_gen_brcondi_tl(TCG_COND_EQ, LSB, 0, label); \ + fLOAD(1, SIZE, SIGN, EA, RdV); \ + gen_set_label(label); \ + tcg_temp_free(LSB); \ + } while (0) + +#define fWRAP_L2_ploadrubt_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBOLD(PtV), 1, u) +#define fWRAP_L2_ploadrubt_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBOLD(PtV), 1, u) +#define fWRAP_L2_ploadrubf_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBOLDNOT(PtV), 1, u) +#define fWRAP_L2_ploadrubf_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBOLDNOT(PtV), 1, u) +#define fWRAP_L2_ploadrubtnew_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBNEW(PtN), 1, u) +#define fWRAP_L2_ploadrubfnew_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBNEWNOT(PtN), 1, u) +#define fWRAP_L4_ploadrubt_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBOLD(PvV), 1, u) +#define fWRAP_L4_ploadrubf_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBOLDNOT(PvV), 1, u) +#define fWRAP_L4_ploadrubtnew_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBNEW(PvN), 1, u) +#define fWRAP_L4_ploadrubfnew_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBNEWNOT(PvN), 1, u) +#define fWRAP_L2_ploadrubtnew_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBNEW(PtN), 1, u) +#define fWRAP_L2_ploadrubfnew_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBNEWNOT(PtN), 1, u) +#define fWRAP_L4_ploadrubt_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBOLD(PtV), 1, u) +#define fWRAP_L4_ploadrubf_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBOLDNOT(PtV), 1, u) +#define fWRAP_L4_ploadrubtnew_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBNEW(PtN), 1, u) +#define fWRAP_L4_ploadrubfnew_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBNEWNOT(PtN), 1, u) +#define fWRAP_L2_ploadrbt_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBOLD(PtV), 1, s) +#define fWRAP_L2_ploadrbt_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBOLD(PtV), 1, s) +#define fWRAP_L2_ploadrbf_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBOLDNOT(PtV), 1, s) +#define fWRAP_L2_ploadrbf_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBOLDNOT(PtV), 1, s) +#define fWRAP_L2_ploadrbtnew_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBNEW(PtN), 1, s) +#define fWRAP_L2_ploadrbfnew_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBNEWNOT(PtN), 1, s) +#define fWRAP_L4_ploadrbt_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBOLD(PvV), 1, s) +#define fWRAP_L4_ploadrbf_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBOLDNOT(PvV), 1, s) +#define fWRAP_L4_ploadrbtnew_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBNEW(PvN), 1, s) +#define fWRAP_L4_ploadrbfnew_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBNEWNOT(PvN), 1, s) +#define fWRAP_L2_ploadrbtnew_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBNEW(PtN), 1, s) +#define fWRAP_L2_ploadrbfnew_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD({ fEA_REG(RxV); fPM_I(RxV, siV); }, fLSBNEWNOT(PtN), 1, s) +#define fWRAP_L4_ploadrbt_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBOLD(PtV), 1, s) +#define fWRAP_L4_ploadrbf_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBOLDNOT(PtV), 1, s) +#define fWRAP_L4_ploadrbtnew_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBNEW(PtN), 1, s) +#define fWRAP_L4_ploadrbfnew_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBNEWNOT(PtN), 1, s) + +#define fWRAP_L2_ploadruht_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBOLD(PtV), 2, u) +#define fWRAP_L2_ploadruht_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBOLD(PtV), 2, u) +#define fWRAP_L2_ploadruhf_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBOLDNOT(PtV), 2, u) +#define fWRAP_L2_ploadruhf_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBOLDNOT(PtV), 2, u) +#define fWRAP_L2_ploadruhtnew_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBNEW(PtN), 2, u) +#define fWRAP_L2_ploadruhfnew_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBNEWNOT(PtN), 2, u) +#define fWRAP_L4_ploadruht_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBOLD(PvV), 2, u) +#define fWRAP_L4_ploadruhf_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBOLDNOT(PvV), 2, u) +#define fWRAP_L4_ploadruhtnew_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBNEW(PvN), 2, u) +#define fWRAP_L4_ploadruhfnew_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBNEWNOT(PvN), 2, u) +#define fWRAP_L2_ploadruhtnew_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBNEW(PtN), 2, u) +#define fWRAP_L2_ploadruhfnew_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBNEWNOT(PtN), 2, u) +#define fWRAP_L4_ploadruht_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBOLD(PtV), 2, u) +#define fWRAP_L4_ploadruhf_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBOLDNOT(PtV), 2, u) +#define fWRAP_L4_ploadruhtnew_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBNEW(PtN), 2, u) +#define fWRAP_L4_ploadruhfnew_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBNEWNOT(PtN), 2, u) +#define fWRAP_L2_ploadrht_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBOLD(PtV), 2, s) +#define fWRAP_L2_ploadrht_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBOLD(PtV), 2, s) +#define fWRAP_L2_ploadrhf_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBOLDNOT(PtV), 2, s) +#define fWRAP_L2_ploadrhf_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBOLDNOT(PtV), 2, s) +#define fWRAP_L2_ploadrhtnew_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBNEW(PtN), 2, s) +#define fWRAP_L2_ploadrhfnew_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBNEWNOT(PtN), 2, s) +#define fWRAP_L4_ploadrht_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBOLD(PvV), 2, s) +#define fWRAP_L4_ploadrhf_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBOLDNOT(PvV), 2, s) +#define fWRAP_L4_ploadrhtnew_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBNEW(PvN), 2, s) +#define fWRAP_L4_ploadrhfnew_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBNEWNOT(PvN), 2, s) +#define fWRAP_L2_ploadrhtnew_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBNEW(PtN), 2, s) +#define fWRAP_L2_ploadrhfnew_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBNEWNOT(PtN), 2, s) +#define fWRAP_L4_ploadrht_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBOLD(PtV), 2, s) +#define fWRAP_L4_ploadrhf_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBOLDNOT(PtV), 2, s) +#define fWRAP_L4_ploadrhtnew_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBNEW(PtN), 2, s) +#define fWRAP_L4_ploadrhfnew_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBNEWNOT(PtN), 2, s) + +#define fWRAP_L2_ploadrit_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBOLD(PtV), 4, u) +#define fWRAP_L2_ploadrit_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBOLD(PtV), 4, u) +#define fWRAP_L2_ploadrif_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBOLDNOT(PtV), 4, u) +#define fWRAP_L2_ploadrif_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBOLDNOT(PtV), 4, u) +#define fWRAP_L2_ploadritnew_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBNEW(PtN), 4, u) +#define fWRAP_L2_ploadrifnew_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RI(RsV, uiV), fLSBNEWNOT(PtN), 4, u) +#define fWRAP_L4_ploadrit_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBOLD(PvV), 4, u) +#define fWRAP_L4_ploadrif_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBOLDNOT(PvV), 4, u) +#define fWRAP_L4_ploadritnew_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBNEW(PvN), 4, u) +#define fWRAP_L4_ploadrifnew_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_RRs(RsV, RtV, uiV), fLSBNEWNOT(PvN), 4, u) +#define fWRAP_L2_ploadritnew_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBNEW(PtN), 4, u) +#define fWRAP_L2_ploadrifnew_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(GET_EA_pi, fLSBNEWNOT(PtN), 4, u) +#define fWRAP_L4_ploadrit_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBOLD(PtV), 4, u) +#define fWRAP_L4_ploadrif_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBOLDNOT(PtV), 4, u) +#define fWRAP_L4_ploadritnew_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBNEW(PtN), 4, u) +#define fWRAP_L4_ploadrifnew_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD(fEA_IMM(uiV), fLSBNEWNOT(PtN), 4, u) + +/* Predicated loads into a register pair */ +#define fWRAP_PRED_LOAD_PAIR(GET_EA, PRED) \ + do { \ + TCGv LSB = tcg_temp_local_new(); \ + TCGLabel *label = gen_new_label(); \ + GET_EA; \ + PRED; \ + PRED_LOAD_CANCEL(LSB, EA); \ + tcg_gen_movi_i64(RddV, 0); \ + tcg_gen_brcondi_tl(TCG_COND_EQ, LSB, 0, label); \ + fLOAD(1, 8, u, EA, RddV); \ + gen_set_label(label); \ + tcg_temp_free(LSB); \ + } while (0) + +#define fWRAP_L2_ploadrdt_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD_PAIR(fEA_RI(RsV, uiV), fLSBOLD(PtV)) +#define fWRAP_L2_ploadrdt_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD_PAIR(GET_EA_pi, fLSBOLD(PtV)) +#define fWRAP_L2_ploadrdf_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD_PAIR(fEA_RI(RsV, uiV), fLSBOLDNOT(PtV)) +#define fWRAP_L2_ploadrdf_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD_PAIR(GET_EA_pi, fLSBOLDNOT(PtV)) +#define fWRAP_L2_ploadrdtnew_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD_PAIR(fEA_RI(RsV, uiV), fLSBNEW(PtN)) +#define fWRAP_L2_ploadrdfnew_io(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD_PAIR(fEA_RI(RsV, uiV), fLSBNEWNOT(PtN)) +#define fWRAP_L4_ploadrdt_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD_PAIR(fEA_RRs(RsV, RtV, uiV), fLSBOLD(PvV)) +#define fWRAP_L4_ploadrdf_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD_PAIR(fEA_RRs(RsV, RtV, uiV), fLSBOLDNOT(PvV)) +#define fWRAP_L4_ploadrdtnew_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD_PAIR(fEA_RRs(RsV, RtV, uiV), fLSBNEW(PvN)) +#define fWRAP_L4_ploadrdfnew_rr(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD_PAIR(fEA_RRs(RsV, RtV, uiV), fLSBNEWNOT(PvN)) +#define fWRAP_L2_ploadrdtnew_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD_PAIR(GET_EA_pi, fLSBNEW(PtN)) +#define fWRAP_L2_ploadrdfnew_pi(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD_PAIR(GET_EA_pi, fLSBNEWNOT(PtN)) +#define fWRAP_L4_ploadrdt_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD_PAIR(fEA_IMM(uiV), fLSBOLD(PtV)) +#define fWRAP_L4_ploadrdf_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD_PAIR(fEA_IMM(uiV), fLSBOLDNOT(PtV)) +#define fWRAP_L4_ploadrdtnew_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD_PAIR(fEA_IMM(uiV), fLSBNEW(PtN)) +#define fWRAP_L4_ploadrdfnew_abs(GENHLPR, SHORTCODE) \ + fWRAP_PRED_LOAD_PAIR(fEA_IMM(uiV), fLSBNEWNOT(PtN)) + #endif