From patchwork Mon Mar 25 03:04:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 782308 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp970734wrt; Sun, 24 Mar 2024 20:05:20 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWuHfupUY+TBR4PagewzmkDKCBY85EzRDDe2ItmQso9N0441LypN97/4p30L+lUcxm9rAneDPxDn5qHvjBcNJyl X-Google-Smtp-Source: AGHT+IEjHBAm1s2OxaNyDN0JbS9BgtK/3BhZcsswnQ+V+643ucjWzG+Sz2jDETSkRIodpQjFKWuK X-Received: by 2002:a05:6214:29eb:b0:696:86a4:9a1b with SMTP id jv11-20020a05621429eb00b0069686a49a1bmr3203133qvb.51.1711335920207; Sun, 24 Mar 2024 20:05:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711335920; cv=none; d=google.com; s=arc-20160816; b=sPyinP74xlue/YMHXymcRetFZG9ubZa8Ka+e+HQNsah9aUiGubcQaAc3RiSHYB46Tu o9sD82LsTDuZBvcFHmhUc6Wz3mJTAxlsW1Ay9coY79x4WbM7HHaQQ3rks7wT1qqzKXmy Tb++SkrTkLusAZG6nliimHYIS2tKabPMiB4Hu3WzXzmEVm5yiHQndQD+RAlC4Ka/SW80 ee81YbXro9JwhCuTu20Zk2pRCI3gVfd04Ebt22R1g4B27Sl8pxCyFretMrAlWrG3pJTF 2yLrQVwHLZjZE8L7FPIJV2aldmLp0F9VLIIpF4kk5+ignzrI8ewhwLjvktklYcEchuKG pHIg== 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=Yjc3OFrM1VjcRTTWqjllxh/4TppvcFlFCFlpC5vRBhg=; fh=f2WZoDMBYjCKWIIOoPI+rQtxlv4fmOm4u+dLdQLqpOk=; b=R6Fz4VDBKDKpKIO/vtIPyTqVybaWCHJIb8Je1XEkMpQ+Vc7ff88COzuboMrRFtv2X8 FbnY75+2AQrHHuQwzT4U3HvgNMlPjP95gQl7q/rkVxDHea2UemOtoLZaah9UPAAYprc9 VeyvadsHaXsboIQYZRcJFGbdTX9gvfyTr5bdt2SoD2aIg9vhi6RxAQCmGTLUzM6IC4oZ eLeJFSWhq2TNIXg7WeKwzZ9QYRaGCuDXKyj1wP7UAnKTVrMYn/FJLl+aZbJj2+tEMg46 QqHgAl7VWOB3XbeY/CoQaft6CwJwU1XsdNyl1iU4ArD7l1oqfkH4hGx2dgcqkOEzOprD hZVQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MKqh1hGq; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id p3-20020a05621421e300b0068fe4f0982fsi7035135qvj.156.2024.03.24.20.05.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Mar 2024 20:05:20 -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=MKqh1hGq; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1roadt-0001Lm-SO; Sun, 24 Mar 2024 23:04:57 -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 1roadr-0001LS-Dz for qemu-devel@nongnu.org; Sun, 24 Mar 2024 23:04:55 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1roadp-0001sg-TQ for qemu-devel@nongnu.org; Sun, 24 Mar 2024 23:04:55 -0400 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-6e6082eab17so2878543b3a.1 for ; Sun, 24 Mar 2024 20:04:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711335891; x=1711940691; 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=Yjc3OFrM1VjcRTTWqjllxh/4TppvcFlFCFlpC5vRBhg=; b=MKqh1hGqM9/EJ/JlGUvayxJwYQ87zO8yowqKdG8Mh8aXzAxmvXOWZKAib+WCxhnwre xcpJjlHCCquFe13Cs1ttjii/ZpdUDcjjq1n34sWgF2fmMBCYiNpiwrNvz3FDpXpCMlky Ni3bxq+O+PzOTMNbztwvzBbDpsZS2ww+FNQ+dnc29bUapHSWmOs+pYnCOssZM69WAmma WfK+ggIuyYsoTT1BRM+CuHQDWyQ82l0rN24J4Jgs6UB7JUVtv1eO+/046GyQYni9CYLv EFIxcWDzCwNXcgofoMmG05Udl9/nL4FmAgUowfwZFffxi+Zk4cVbOmEtEbUJrli404/c QeMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711335891; x=1711940691; 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=Yjc3OFrM1VjcRTTWqjllxh/4TppvcFlFCFlpC5vRBhg=; b=wzU6nFFUGK7gRxzMpDJrWQ32A1w5P9d2f+mLMaspH5g6F8FhS/XcCj1PNif+4g1nmp u8uPutovyESZXN5TS7SEzVDhIsDLVhlOd+zpENACypkT+cat1T7jnuNvKTPjLljWvwfL HB5ErJAYW881WngYrKVp70igC8jnzzKKrZ7yKsHEsB0y7a+wh3lU+BlZjMY5B9iSx+S2 Yb+1nXcbRKFfWkmB12gTkg4DLQFZsZUagOJhMwu5P8eY6NAXCR/fFAxCVC36YlNxupe5 62pf6qUJ2933qwPxu9+msGz481zAZGGFhBGKIawPjWY1yCV17XuyQXHq4UH8TfEXwgsy i7qQ== X-Gm-Message-State: AOJu0YzDLkFeDRGk+giafwxZ9BV/afDJncKpWNU5kW1x2iXhmq4kn4Y4 K0Re5TP+IPwX6FPvWIJGNS8LXOWptwF2UkFgrQ9GrYppvebRXeJptTkcT7mIMnnfmewA7DA+MXq G X-Received: by 2002:a05:6a00:9aa:b0:6e7:4ab3:f8fe with SMTP id u42-20020a056a0009aa00b006e74ab3f8femr6952424pfg.7.1711335891046; Sun, 24 Mar 2024 20:04:51 -0700 (PDT) Received: from stoup.. (173-197-098-125.biz.spectrum.com. [173.197.98.125]) by smtp.gmail.com with ESMTPSA id q12-20020aa7982c000000b006e6b4c637b6sm3291880pfl.116.2024.03.24.20.04.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 20:04:50 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: deller@gmx.de Subject: [PATCH for-9.0 0/3] target/hppa: Fix DCOR, UADDCM conditions Date: Sun, 24 Mar 2024 17:04:45 -1000 Message-Id: <20240325030448.52110-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x434.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 Two problems, both related to the reconstruction and computation of carry bits. Simplify UXOR a bit, since no carry is involved. While in the area, optimize UADDCM without condition, as that's the common case for inverting a register. r~ Richard Henderson (3): targt/hppa: Fix DCOR reconstruction of carry bits target/hppa: Optimize UADDCM with no condition target/hppa: Fix unit carry conditions target/hppa/translate.c | 240 ++++++++++++++++++++++------------------ 1 file changed, 132 insertions(+), 108 deletions(-)