From patchwork Thu Aug 1 07:58:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 816031 Delivered-To: patch@linaro.org Received: by 2002:a5d:4acf:0:b0:367:895a:4699 with SMTP id y15csp1072949wrs; Thu, 1 Aug 2024 00:59:31 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXvLNL+bVWVW7816K9fiwTQGA9wKFM82sJNnBRjl2h+BUG7MVmYx10jzgR9HGQRDd2fPGn3GkiqiecZWXs5YaMA X-Google-Smtp-Source: AGHT+IGs+mVi82Zd9nYg6oSyPbOa1UCUgOsPCsg/z3igqS3Gw79xMeTIIMJHNqLwzoNJzlyR1fl8 X-Received: by 2002:a05:6214:2b82:b0:6b5:e51b:f648 with SMTP id 6a1803df08f44-6bb8d7b6f71mr16883846d6.48.1722499171098; Thu, 01 Aug 2024 00:59:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1722499171; cv=none; d=google.com; s=arc-20160816; b=ePJ3VQv2+ZIOhtFjW2B9Q1UzsR80YPmUzF/687L3le38WFi/98zNDmy4A6Y4CNEsA7 UXJtDGiZ4C1kXXTcNsLZ54PsB5aqFhKJdO5li0JUBGSl7ex8rxZAZ77LGluABqOuT92k b8MK6VVTrJqKh4mWB/3cuip2OwvVf5RxUZlAcPuVD0/y4azXu1RNOx3LAqeV16lnYiHG 9UspXExg6V7tCx+WiFFm0pU7v4jRNOUMsNndNh/XAYSwS/6OEYZy+kG6mqT8W/37A9al Pn+aGhMd716HkDNUHLEzKZ8XLpyYsH6dpwVnOHX5fUrXRvifiHQghTeh639l1aHyIi8/ rB7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=cvSBaOjYUWst5lQGGF5lSfdqUi1l6xFL1uXDSqJKRIw=; fh=3mEp7FusppN5Drq2PN08R8D/9xXM9YdbtG5TkJxJBiE=; b=MbXzPtSBXUwANYjDHY/dzAjoMacW+yAirBtUmih2vSJsAk/inhltD/hFwROZrxch/f dUcruFGdoEYCns8v5XXYD0ormh1n/O8aNdXH4rrrnbnCmH4h0CVdsFtqHZ8r2qsnsv9e l3DtYPFGsojR+NbPdg3fZ04kgJgnXLAXsh2lJlGayjdDETcKFzD9CadmINOSwpNPdyiQ hS3WIleM4DeepW0w2dJootxKtAK3BfyJ0IYs2C030lTyzBGCSGuHCh1OfBZqrftjaH9P vthVbChc8aXrNqj6vYQ7HB2DyqrBWfU0RtLXoXCMAWXstUkNCm8tzK+CK1MUVQ5g+ZWq bGcw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AEYWDhDI; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6bb3f8f0b57si162033676d6.178.2024.08.01.00.59.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Aug 2024 00:59:31 -0700 (PDT) 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=AEYWDhDI; 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 ) id 1sZQiA-0002so-Tj; Thu, 01 Aug 2024 03:58:58 -0400 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 1sZQi9-0002sJ-RL for qemu-devel@nongnu.org; Thu, 01 Aug 2024 03:58:57 -0400 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 ) id 1sZQi7-000652-Ku for qemu-devel@nongnu.org; Thu, 01 Aug 2024 03:58:57 -0400 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1fed72d23a7so49575455ad.1 for ; Thu, 01 Aug 2024 00:58:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1722499133; x=1723103933; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cvSBaOjYUWst5lQGGF5lSfdqUi1l6xFL1uXDSqJKRIw=; b=AEYWDhDIWAoybsVtRsxCtRrqLQn8QJ6qwhSU+oSVBsUZY+nylupXwVHmtqyp/VarFK 4Pl1TwCLWJTD0X/dMM1LnGE376tmiMkQ/mM1tCcI6Ilsy7E19kcZHhJwXC0ZlU5kYWjE lbjS+Jjq49WZu0ViZtovat9b8zKj9uH0Z1i7rKjWLdkuqvrXqvctrTZxF+oAXngu0Z8Q qtmoCage846k1lD6r4xWWojauHAsgiZNEmrk/XXTarrL0Ir+bDJ5RpCcgFFe/vWOAMsf 6dd1HhuX3VWCiewBjbgN0VYwaT28v91g0bYUe4pFuRMCOcxNK2u9B18lddY+ktyWILqx LNcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722499133; x=1723103933; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cvSBaOjYUWst5lQGGF5lSfdqUi1l6xFL1uXDSqJKRIw=; b=RK+cpWx4WCQZ3/lKfeMjLVMMD0BwBju9BtrCuDhkVOOJ1z/kgNc/OFniFjCVimuQ9z YRxHHv2mO+VsMFLoi/5i+2XV3IEEqPeCqrVIWEdOjhLbHfdTtqVfoXNFYI1/sHjetchT wWYIFbbRtZySPBAlUqZReZE2eZT6J6MiO2t+Y3BQBnG4BgTAvxMowRBnyOaQPiAlspRE 6Za0PUtnFGURFY1CHmluF87gMf3Jzx/UzoPIQHDGeXO1fGBXUtXTFpJnvgZZuAGInefJ OTrhWZYFysYPVGRFbiLDQWPMhzFmldb+cbMgtAqLCDPIhxhOvpzIzIvHqkxlWKjmWIBW 3dKg== X-Gm-Message-State: AOJu0YxM/aFQ0yFLzGjmdR9qAOtJCQnmnSeLtvxfjtBbGlSejT3Rn3Vu wmX3bm7JeoXnzIG2lUf/rwFfTvqmLQ0rQuoykS0K9m3wTJvVDzQ97XuqjxBxviESiRW4Sk5fkWO vXpNoTw== X-Received: by 2002:a17:902:e54f:b0:1fd:7fe2:1f26 with SMTP id d9443c01a7336-1ff4d215148mr19649575ad.52.1722499133271; Thu, 01 Aug 2024 00:58:53 -0700 (PDT) Received: from stoup.. ([203.56.128.103]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fed7ee148dsm132195755ad.144.2024.08.01.00.58.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Aug 2024 00:58:52 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com Subject: [PATCH 0/2] target/i386: Fix carry flag for BLSI Date: Thu, 1 Aug 2024 17:58:43 +1000 Message-ID: <20240801075845.573075-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Fix #2175. r~ Richard Henderson (2): target/i386: Split out gen_prepare_val_nz target/i386: Fix carry flag for BLSI target/i386/cpu.h | 5 +++++ target/i386/tcg/cc_helper.c | 18 ++++++++++++++++ target/i386/tcg/translate.c | 27 +++++++++++++++++------- tests/tcg/x86_64/test-2175.c | 24 +++++++++++++++++++++ target/i386/tcg/cc_helper_template.h.inc | 18 ++++++++++++++++ target/i386/tcg/emit.c.inc | 2 +- tests/tcg/x86_64/Makefile.target | 1 + 7 files changed, 86 insertions(+), 9 deletions(-) create mode 100644 tests/tcg/x86_64/test-2175.c