Message ID | 20250102180654.1420056-14-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp7902427wrq; Thu, 2 Jan 2025 10:10:37 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCV15nC0mh5PE26gaTh/cka6DULgpWVbL12F+Qlo7m5+xyOuunclf6IryMLdavOzpgua8/8rqQ==@linaro.org X-Google-Smtp-Source: AGHT+IE3mK7gvNk3LV+GVnzoYIneH7FZPs1Mt1i8/O4Vk+rSFuQaH6pCe7E25Aw6zkDyBLDF7l3f X-Received: by 2002:a05:6122:2485:b0:518:791a:3462 with SMTP id 71dfb90a1353d-51b75d5380amr33840516e0c.9.1735841437613; Thu, 02 Jan 2025 10:10:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1735841437; cv=none; d=google.com; s=arc-20240605; b=Jf555cPXkVY/NvixAG2nACoJo9ihjBcn1BqBj4uYWNpk4N9bYSrhGK3RFt80HnIbK3 ptv79IXxPMHkBObGBYs4foCwdtTGWW8CtxLsOeXNkOSjndr5m5Azq6+xvu8UypgDfI0Q uVYoFnhNRcTGxEbyEL4RxaBBAYLuw/K/c8RdH/tdLaVvRxD00MHew+dM0r98m5mIAXvX JeGy3iatygk68pdXQ25z8QMM99RvgRzMF9bktnP1oeeQeKeiv4UEj6j950l/0COzA/Kn TIoVrCTaQlVCPSsAyT/RVQnOtgK7whb7AF1cQfwZ6crvM9dvQudrS22pIIB05Zqr6dBI luCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=tZNuCKxzVy4h1cgrq7+uWPj4SLLD6iJ8Nf3UNQrxKyo=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=C0ahlb1YGj0zJylFtRfAFLsarsIrrebj2F+6kyKxhkU4uvzoXqhqNIgc1wfJbC4GWq NcGZImiKByvcVj8rlt61i5lDT1t8bq3qf8FXzy4knOV3cjLvh8r8FWb5xdJi3vj6XGBR KlzcITWNaV/lRH99hHHuff/O47crX6Ed8iNetqzwL+a3hAI+q1phhFS4F0QYSECpztdK ty2Eaf1uyPgjO+e8WAqtlII8reZXb9KWx0UCBXjC9ivU2eavD6zf4QDAnVF8IfeLbXO+ O7KcsvOmnCPms6fGbpzW5Ba1tU+v0mD2R77pUVVI72sHO2Xu2TrT5QssMvJ//ruwG19A OLdw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=doAemeL9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 71dfb90a1353d-51b68bb5298si7924900e0c.79.2025.01.02.10.10.37 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Jan 2025 10:10:37 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=doAemeL9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1tTPba-00074a-Ss; Thu, 02 Jan 2025 13:07:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1tTPbG-0006yX-Oy for qemu-devel@nongnu.org; Thu, 02 Jan 2025 13:07:19 -0500 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1tTPbB-00058K-Gv for qemu-devel@nongnu.org; Thu, 02 Jan 2025 13:07:11 -0500 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-2163dc5155fso155960025ad.0 for <qemu-devel@nongnu.org>; Thu, 02 Jan 2025 10:07:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1735841226; x=1736446026; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=tZNuCKxzVy4h1cgrq7+uWPj4SLLD6iJ8Nf3UNQrxKyo=; b=doAemeL9Rhr+TFSgKweS8lrKwNtUfs38lm+K/K2R2ivi4CEPH8JJPdhtKXKPvBhQ9e 9ytm3ImbHtZSPJc6/aarSMTGAnCCrFjTzRN1FfndJ82nEip1B0IdyM9re+ZXtHRDv8Rz U9MFbfJJEmWDAkRM8aZN4hjz0oc3feuCBh7/6a5kfEJjUhOzD9d1boXJRcwXbhMxGX4d Lk6uXcgheNODntuZjHVoWI+a6kktWPT3ehUl37B8CAUa+ndDH2huWlbef77lYHJX/nFy tVUvEuKiiMGH8fAScqSuLwhzVwx9vh8rshO8sJL4YOA+gcLuViUKZPmMpPMh+fAHSxeY S8Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735841226; x=1736446026; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tZNuCKxzVy4h1cgrq7+uWPj4SLLD6iJ8Nf3UNQrxKyo=; b=T+lZDztpUivfScS3NIDmA9Zfks8OpegGGQf/K2XBWpwNqenLAZEjz/lGhGCyY+BTTH 0scRIJ4dkLTJpIce40jd18ebWXCG1M23ZGKzP4m3mjjx3kd9FktKpGNLyZmSOGNZqWrd Chh8wVE7cOs794y0FhnsHxuyvwnH4YVTvCHPiW7q1C7LcEEksXHPR+/kN0PxO5pJ/IUX MnsUf0BD5Hl41UA/viBIsoPcInS41Thpmv6OIXhg1ZNNVKOLOfuXKsTTEp63aPH52Hzs 8KraNmIVw9+q74bMOsnNbPMAFfkNUwVIySuL1As41y+dgtU1Md3zOUmTGJdrChlMKfQ2 ukjg== X-Gm-Message-State: AOJu0Yy4gu0NHP6nH3bm2m/m+wEhKXIYRGjJRvMc3BdCuhq1hI2D1t4D XxDsYdNll3gYUVgJ6aU1kupqi3zkEIjZzeY5YEHFDm3g7FZtkhebPfguARtDmiLGjrm/7u3I11e I X-Gm-Gg: ASbGncsNqp3Hu1Ii8k2KQuAf2bEWJtIZz36QaKtFRDY6r1UunTu7JTDtAfADIGpSjTJ 7ZtR+HbN2nSoCpHBXOZ1tefeF+0HBO4lWFuyZnGnriKtUazAaegEEjsi5FC5dmN4kWUxWd7p8av 7mRd4Axw7pfLOq3K1vqEdAQAdVMCsaKIBb56Cy2u8sGdEbILzHWtFtgvUB3YEIrJzwS0wZSuJku hly9oCSlpTaNEGRDQQ8BbbBBmGm+rWZtZO14MC3CNrt8dX5bCyKVC5pDEeQBw== X-Received: by 2002:a05:6a00:2405:b0:725:aa5d:f217 with SMTP id d2e1a72fcca58-72abdd912fdmr58560968b3a.7.1735841225925; Thu, 02 Jan 2025 10:07:05 -0800 (PST) Received: from stoup.. ([63.239.63.212]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72ad3393d5fsm20604456b3a.154.2025.01.02.10.07.05 for <qemu-devel@nongnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2025 10:07:05 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH 13/73] target/i386: Use tcg_op_deposit_valid Date: Thu, 2 Jan 2025 10:05:53 -0800 Message-ID: <20250102180654.1420056-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250102180654.1420056-1-richard.henderson@linaro.org> References: <20250102180654.1420056-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x630.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
tcg: Merge *_i32 and *_i64 opcodes
|
expand
|
diff --git a/target/i386/tcg/emit.c.inc b/target/i386/tcg/emit.c.inc index ab416627b7..a2b940a5c3 100644 --- a/target/i386/tcg/emit.c.inc +++ b/target/i386/tcg/emit.c.inc @@ -25,10 +25,8 @@ */ #ifdef TARGET_X86_64 #define TCG_TARGET_HAS_extract2_tl TCG_TARGET_HAS_extract2_i64 -#define TCG_TARGET_deposit_tl_valid TCG_TARGET_deposit_i64_valid #else #define TCG_TARGET_HAS_extract2_tl TCG_TARGET_HAS_extract2_i32 -#define TCG_TARGET_deposit_tl_valid TCG_TARGET_deposit_i32_valid #endif #define MMX_OFFSET(reg) \ @@ -3449,7 +3447,7 @@ static void gen_RCL(DisasContext *s, X86DecodedInsn *decode) } /* Compute high part, including incoming carry. */ - if (!have_1bit_cin || TCG_TARGET_deposit_tl_valid(1, TARGET_LONG_BITS - 1)) { + if (!have_1bit_cin || tcg_op_deposit_valid(TCG_TYPE_TL, 1, TARGET_LONG_BITS - 1)) { /* high = (T0 << 1) | cin */ TCGv cin = have_1bit_cin ? decode->cc_dst : decode->cc_src; tcg_gen_deposit_tl(high, cin, s->T0, 1, TARGET_LONG_BITS - 1); @@ -3501,7 +3499,7 @@ static void gen_RCR(DisasContext *s, X86DecodedInsn *decode) } /* Save incoming carry into high, it will be shifted later. */ - if (!have_1bit_cin || TCG_TARGET_deposit_tl_valid(1, TARGET_LONG_BITS - 1)) { + if (!have_1bit_cin || tcg_op_deposit_valid(TCG_TYPE_TL, 1, TARGET_LONG_BITS - 1)) { TCGv cin = have_1bit_cin ? decode->cc_dst : decode->cc_src; tcg_gen_deposit_tl(high, cin, s->T0, 1, TARGET_LONG_BITS - 1); } else {
Avoid direct usage of TCG_TARGET_deposit_*_valid. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/i386/tcg/emit.c.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)