From nobody Wed Nov 27 00:28:59 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1703269015; cv=none; d=zohomail.com; s=zohoarc; b=Ubfa3IeZyP0MNm0jefnZMoKZw7160IOm2S8NlsYo2HjONKaa2A2hhSUS/XpZ+wPazM8ozYLsX4Bnzz4eiJ57DvghhwQVqKNDTo6UFZvIxi50xS3CvASeiO8seHoa1mQJgPKf1QeWbB8Ty0ItoEF0f4RpvJbxtDT+j8m08I0+7aA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1703269015; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=zJqcWh9yKQb2lTOswMjaPmpHyr396rVt92s4avj3LM4=; b=Q52ePkOICVYocrAuiC6dp65xHSrbsnR+L7DsWMvEy5+qWmTGusL0nIg5Hx938LRnBFOZCFn07GURvHApVaDSE474jeWv+PZ+58TL0braNjbnsWmo2Z0avF+Uqf1526+/jTssBz2l9sJ4ZIQ7cy98XTUGFNpcaAnG1MohXf3pPyI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1703269015535522.186875427846; Fri, 22 Dec 2023 10:16:55 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGk4J-0000x1-1s; Fri, 22 Dec 2023 13:16:19 -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 ) id 1rGk4G-0000wZ-KN for qemu-devel@nongnu.org; Fri, 22 Dec 2023 13:16:16 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rGk4E-00068X-Uy for qemu-devel@nongnu.org; Fri, 22 Dec 2023 13:16:16 -0500 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-14-BJ_sb4AsPiG1nEjS9CCBow-1; Fri, 22 Dec 2023 13:16:11 -0500 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-3367e2bd8b0so1376344f8f.1 for ; Fri, 22 Dec 2023 10:16:11 -0800 (PST) Received: from [192.168.10.118] ([2001:b07:6468:f312:9af8:e5f5:7516:fa89]) by smtp.gmail.com with ESMTPSA id z11-20020a5d640b000000b003364e437577sm4817567wru.84.2023.12.22.10.16.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 10:16:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1703268974; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zJqcWh9yKQb2lTOswMjaPmpHyr396rVt92s4avj3LM4=; b=Wc1JiUH53h28c+ekwMuOBWF0MOvRtUsMMKozik4qEi0yskzSJrqmh4GuVrabGF+ma3jTVk ZrAlaxJ2C4gpj5/6dqVQHvn/lEmL8iHu7qqBKxFxre0525HCsT2VguWqL1YuvyCiWmqAgs yiwvp1Z/5wfKwWnpbjemJOQdP1jSVZQ= X-MC-Unique: BJ_sb4AsPiG1nEjS9CCBow-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703268970; x=1703873770; 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=zJqcWh9yKQb2lTOswMjaPmpHyr396rVt92s4avj3LM4=; b=Bvbw3k6AhsWWjcljVwNL0xbEhouJYkRGCVtp9F2L0xalm02j4ynzhcVSrD/5LM1vzc pra5O+kMWfNY1HKQZY0S/ssJ8YalPIcnKy3/kERHTGqgEFuy553ksvl155td2+bE/UQ4 w9cgITDKpFChxenDTZaU55n+nxvPD+yHGwUnNeJFhgJJykIpaxx44IbMF7loG54es7QR VokXdxfENkcGo/H9bgYyHsiXLj7rJ8fJBF0c2fz84L/lrlwAjj0kpO9xz8JRuB7jazub yn7RCCHIIRlPLfQJFrrwujPcXB89ClOU6m8htVe91VKGsSoq7tcuTe3bwIRNlOsDM72N kVzA== X-Gm-Message-State: AOJu0YxGTB0LAPHXqDNPg6jC1/Kxnk8wG4TzkYFuoe187l+kDUd/QVr0 g7VvS3Ez+azgEyBui6c3P6CtOFSMyhKg/3RMTukIO/GTSucUwlqEnNKx4Z+bhXoKQVSI+Cnh1Xt Y9ZwMvJBC7z0fN9sccuQrUMeLVU1+dV28txzPPhJl0o4pRzfFB2HlLYxDuvdXYN4/HDkGd7jLHI VVAk9cvMA= X-Received: by 2002:a5d:456e:0:b0:336:7a65:299a with SMTP id a14-20020a5d456e000000b003367a65299amr1013374wrc.85.1703268970078; Fri, 22 Dec 2023 10:16:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGm9Z9b+nwjXu8YRgbFrF5WOv62YGZoIouhwFafnN0LpwcbUwZaLUbWxzeDQmQtxu8qbrTSJQ== X-Received: by 2002:a5d:456e:0:b0:336:7a65:299a with SMTP id a14-20020a5d456e000000b003367a65299amr1013369wrc.85.1703268969652; Fri, 22 Dec 2023 10:16:09 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 02/22] target/i386: speedup JO/SETO after MUL or IMUL Date: Fri, 22 Dec 2023 19:15:43 +0100 Message-ID: <20231222181603.174137-3-pbonzini@redhat.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231222181603.174137-1-pbonzini@redhat.com> References: <20231222181603.174137-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1703269016091100001 Content-Type: text/plain; charset="utf-8" OF is equal to the carry flag, so use the same CCPrepare. Signed-off-by: Paolo Bonzini Reviewed-by: Richard Henderson --- target/i386/tcg/translate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/i386/tcg/translate.c b/target/i386/tcg/translate.c index 8fb80011a22..a16eb8d4008 100644 --- a/target/i386/tcg/translate.c +++ b/target/i386/tcg/translate.c @@ -1020,6 +1020,9 @@ static CCPrepare gen_prepare_eflags_o(DisasContext *s= , TCGv reg) case CC_OP_CLR: case CC_OP_POPCNT: return (CCPrepare) { .cond =3D TCG_COND_NEVER, .mask =3D -1 }; + case CC_OP_MULB ... CC_OP_MULQ: + return (CCPrepare) { .cond =3D TCG_COND_NE, + .reg =3D cpu_cc_src, .mask =3D -1 }; default: gen_compute_eflags(s); return (CCPrepare) { .cond =3D TCG_COND_NE, .reg =3D cpu_cc_src, --=20 2.43.0