Message ID | 20250107080112.1175095-13-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:8b05:0:b0:385:e875:8a9e with SMTP id n5csp98870wra; Tue, 7 Jan 2025 00:04:50 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVy2iNaB5TNe/kEhq25//dsdR3tIWPw4OGcfWOrZ8px7SU5ctXxdZAdPVIYQZWU+QipDIevuQ==@linaro.org X-Google-Smtp-Source: AGHT+IHfv/1I3MQ76jJDvhBTjXEwn6qsBEMcqiFoSmjdwM3Zii10jmcbg/hwqR4GJeccwgc9ZET6 X-Received: by 2002:a05:620a:444d:b0:7b1:1fdd:d54f with SMTP id af79cd13be357-7bb903934b6mr341192985a.29.1736237090256; Tue, 07 Jan 2025 00:04:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736237090; cv=none; d=google.com; s=arc-20240605; b=goKlxD5NzZdRRIYRSojTm/NV1ORhaDrlHp2XuGzn3kHGxQ9oFVfUZOsiX/tbNLMleb I7JHG1GLFpsc8cMuln3fHRwKJLn6NzbIBfaiNaJJUoDSPM6aP3PTsMbf2DHgcX7cpHdG mHR7zUYNG0qm325llaRAuTELA0rUIFXHEGaPJ19am+dkZWxHtRLjyazuBbNsk0c3+PlM XkdFNkzWTX+Mrym++D1N+qYCVhjtU3tuWNvb+AyRtmlJ6tFU5Dz9S3ZRoMyPS3AHJgQe JRM+6vOJ9AbjpOL5/39rDf+QVrFL4oH+3lndKLiSdaXGcFWVfdaig0kx7BikZMeYghpj W8Xw== 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:cc:to :from:dkim-signature; bh=Va9p08X93j/jzeWcLncWLYR0nY5/Q2/Ig5KLzRua/5s=; fh=1AaLZNOiARaO2MErHmdWiM20H44tzxxDYMw0tHmbGN4=; b=UczUHQSk66bhuwInDnvTv9FH4qsZId5VuB2Xm3lOGhvv6VzaSCT+v+VNoXaJ4LF03B kYZ9gEKa0NnX4PjtybXoyNVORztlORa93Zin9gRtHHvtfBpc+ALH5hzVGSV6jzmVei3e iBc350qYMQC+h4OgBbDsDGPR1QS92gtdkxhZOtIbMsJYCeF58Lew+CpsjmkwEA75rsjA Shg1MySAf5FhG0dY/AZQf+CS13guHUGMzukXzBN3P+o1GIfPHLq4aeLDIySPrQW2A0jr IO8dwuqX/Yy4MsQsxAT2AIcrYtqZNdukmd2msr+TrHCQ1AeGq1JKd4APbYyASRaEKLD+ vgDg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kweRXHyD; 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 d75a77b69052e-46a3ebd79acsi428647861cf.605.2025.01.07.00.04.50 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Jan 2025 00:04:50 -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=kweRXHyD; 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 1tV4XS-0000VU-HR; Tue, 07 Jan 2025 03:02:10 -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 1tV4Wo-0000E2-Ck for qemu-devel@nongnu.org; Tue, 07 Jan 2025 03:01:32 -0500 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) 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 1tV4Wm-0002uS-Cw for qemu-devel@nongnu.org; Tue, 07 Jan 2025 03:01:29 -0500 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-216395e151bso161392385ad.0 for <qemu-devel@nongnu.org>; Tue, 07 Jan 2025 00:01:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1736236887; x=1736841687; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Va9p08X93j/jzeWcLncWLYR0nY5/Q2/Ig5KLzRua/5s=; b=kweRXHyDZWRrc1GfQUud3Ig0aeQlT4dIQgNLPMhffNFyasrLjqR0o86mj9++l6bgpk 42gcRMGghHw4agTXd2I29ErxQo8jIq0sg5JgmaerpSIk3wR/qZUNHMGOGJxLoW8A02Tj +3j0vnRLza/iSIzzh1UiKJrX4E48m7dDNd+4bpbsrqC7QS38J5yApz4Iv6DUjngs7ao1 SaQOH5MoF8xNDcKaykX8yrPFmFF3fsBgs36K09mXpR7Jd0CzifhWDebBrpjvVl7gavqF NkP2qT99s3E+ZSLjrNdEJ+uEyljo660MifV5St5VtTn78NF1seYsh2KknQCcXLbEXjKh Uu3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736236887; x=1736841687; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Va9p08X93j/jzeWcLncWLYR0nY5/Q2/Ig5KLzRua/5s=; b=TIeeUbqZY6VCdsqNXe2NUnWORLAOpOsx5yuFL1rG2jvQKE8LHoJzUi7DCtSWq9H84r LfJaItHxmlX10MWuiQ0w4rMQC2W0MVr+cpHC+V6a8Isb1eWMs1tSyXkzGX76LdUU6Oi0 gBNSQGDxqCYJI5I/lJNeBZf9S815zFTBXWXvmelAhca1j49y8LI3Q4z9v0IOH7FTWdUr S7ajIaBY8m0Y92rCztqDiY588RtS8BvGeHV8VLUWQro1p9JJ9KJYwfn/tLgBTG1c0OxN tSVWsY+d/H/KLZv7vAXPM68ZN94o+hHzPYz5D2KKBlRN30xqYZRaCXfUaHmuJq+ErxvM 2d1Q== X-Gm-Message-State: AOJu0YxtwvZmrqv0WkQxyqV7eigQ6deNoH5TceJCehH2HPuwj4D3rXlk f4GgxwkQHJvgwCbwndyOQNbO6qC6QNvdOzFZkuDYknJobbMMfvxyZGWhr4FhoeMP+ND5swbgn3y p X-Gm-Gg: ASbGnctBSw/s6i/kdAwEsUfGHkMkA7Nxlang8+yug+CF4MHO0LWQKVMPn6ttLZwBgSu 2TXxTAYkgqv/qDIU2ono3Rk/nzdBL4WY8FWmF3yLnREsv1iNmaG1kpvTIR02uO1KzppCA1Mhn2r nKrApuqO7KyrFNw03i1XT6kFPD118Cuu2n9cctBh+eukJp7u5vC8p2m34dpxxS+ET2ti2sLiDki dfV8HuL4tTT4GU9bD5ru6pd52uy6VN6RqHOITvYPS3e7qcwRly4V1c6Mvb+3Zspr1qj7/3NSMHN rWg38WGOmruxbsDHCg== X-Received: by 2002:a17:903:32c9:b0:215:7287:67bb with SMTP id d9443c01a7336-21a7a0dc406mr33571705ad.0.1736236886964; Tue, 07 Jan 2025 00:01:26 -0800 (PST) Received: from stoup.. (76-14-228-138.or.wavecable.com. [76.14.228.138]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dc96eb12sm306765995ad.87.2025.01.07.00.01.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2025 00:01:26 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: philmd@linaro.org, pierrick.bouvier@linaro.org Subject: [PATCH v2 12/81] target/i386: Use tcg_op_deposit_valid Date: Tue, 7 Jan 2025 00:00:03 -0800 Message-ID: <20250107080112.1175095-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250107080112.1175095-1-richard.henderson@linaro.org> References: <20250107080112.1175095-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62f.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 {