From patchwork Sat Apr 8 02:43:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 671493 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp608719wrt; Fri, 7 Apr 2023 19:52:42 -0700 (PDT) X-Google-Smtp-Source: AKy350YRNUN5hg8WLUs6rGWFL+SbXRGPY9solyu+7xQ0T+7qS1BGrPNRFGUmzE2goDxuvvp1pdIU X-Received: by 2002:ac8:5f8b:0:b0:3d9:307e:8b with SMTP id j11-20020ac85f8b000000b003d9307e008bmr1152915qta.35.1680922362240; Fri, 07 Apr 2023 19:52:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680922362; cv=none; d=google.com; s=arc-20160816; b=h5+G5HqkpMNfPaYc1fH+J4JXvVhQzf4Q31iJ1EFnVNMQKejhDEo+dvCVGd7Hr0nhyF zkvT2sg+o9O7kI8uLOfsCIj5T0TqhKGQXg8eSGFCJTZ0KMHQgeXB1es/6twxLvVGaett V8OW7Ax8UZo8X99xPqN9oz1Wj9IU0dMeCiEtqsBNIFhIao4SxMZ8YryFJdd5OqqIQGQY cc4aeriiyvA6+crTQpkZiB2YOkirKezoRyDh71m5I35m17KVcBRk3cGegiMWgaN27Be2 2HbKyGq8F3NLL2xxTltitpYKFmnMJXj/XbS5QDB5pSC717XMK2402HDVhn/rOnulqZxd yIRw== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=U3GQzefZ28zb/sjvcPHPQ2WB6aIN+aVY6R/9kd6URaA=; b=ewz/Jvw/KA4S4ThUcJzDwyoFMmoPXI867jGrlM9ORMueuCWbIiKingddZq2nvZFKqR BW6GexOYpFLVXqVsz9pXzY+EMOfAIr/MtIsIh/Iso4Obf9dRSTg42UPavvH+oleHaB7M v/k7OjG8x9Oz+CkU6QgvJXa0puw9vK0ZtLJwe5KZ7hWqYn0wqv3TNoDx8BJX2TOgBkiK F4ZWBlSGQsq5SshViZ1US3D5svVjvYIPtyyJxHnUIBzZT1imuby/2G7cb80idFFeSBDV BQWc0Jw+Lqj4E+eN+Y59otOHfcS5hZvWIiHK6n/1uBUPSVtW22z8CBIHvka1ZBVCQ19B vM7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=z6r62+fR; 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 a202-20020ae9e8d3000000b007464262b8b6si3661164qkg.636.2023.04.07.19.52.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Apr 2023 19:52:42 -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=z6r62+fR; 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 1pkybT-0003S4-Qa; Fri, 07 Apr 2023 22:46:59 -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 1pkybS-0003DN-1Z for qemu-devel@nongnu.org; Fri, 07 Apr 2023 22:46:58 -0400 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pkybO-0007nV-LW for qemu-devel@nongnu.org; Fri, 07 Apr 2023 22:46:57 -0400 Received: by mail-pl1-x632.google.com with SMTP id ke16so309557plb.6 for ; Fri, 07 Apr 2023 19:46:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680922013; 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=U3GQzefZ28zb/sjvcPHPQ2WB6aIN+aVY6R/9kd6URaA=; b=z6r62+fR/fU9gnjqCuewDYj2jsptEwsSt4+1T3QR6Pttrr7zcQPPNZZmje0/TBUugf 9BkCKiFn99uTcUMXUYS1MrzZUMTbsIipo5TqrX4p7VSyZYtZe/or8P9wusfJN2QpeM4p HfSL3YGo6j1AtrKOzMeWUwLl2TmJLfGvJyQVzc5+C9H8YrGgphA/D80LHTgE7ApfbVwG nijMPLraV/rKqToM6REOgwYIoHIQ5bpCrRpx6y6AsoXRPBwP4Dspaky1pHirQ1CalHE4 nh0NzDTIRXSwqGV4zu2BlkgNO3fKHmvBzOz2U7EIqr9bR6m6zLI1CPZzrDceOLIJqvjG umJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680922013; 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=U3GQzefZ28zb/sjvcPHPQ2WB6aIN+aVY6R/9kd6URaA=; b=i7thvEvS4ftW+edAfDzpVrQp4mQfZuLUdVsHeI6SOGY9RB/0qqAXUOzL55aM70hKY2 OCYtg7f1xXxb3xvKCUQa9bOyx7OmQuEcv5H8PYzJ4JO1lrasmsI1DAqiepMUSzpOdHH7 8hPNFkogoIVBVPWJRat4OsOEj64u71zMcBvTFnUDmTuOW0IUlhNC7lYQ73LeWVyZh6xf r43nUWuTkRvr9m9ySoM8pClxbj/qgFDYbX7BV59u+b0kLBc4X09iAmOU7ySSfBbi70/9 DgBZzuh9AFs+YMkP04hBHK5MohSaCbGVEYSFRQT4ITzykgPXXdPfHAvnLKgtKLPnUglF sBYg== X-Gm-Message-State: AAQBX9fYGfJaV6x1O8aTs+oDkHHsp1jtVzDKTOR/O5einuyow2dJzavY VnCf/dyZP37J/K719Ttj/9iM+SNbrWUtYGzFpnw= X-Received: by 2002:a17:902:d50a:b0:1a1:e39c:d4d1 with SMTP id b10-20020a170902d50a00b001a1e39cd4d1mr497545plg.67.1680922013184; Fri, 07 Apr 2023 19:46:53 -0700 (PDT) Received: from stoup.. ([2602:ae:1541:f901:8bb4:5a9d:7ab7:b4b8]) by smtp.gmail.com with ESMTPSA id k16-20020a170902761000b0019aa8149cc9sm3551981pll.35.2023.04.07.19.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 19:46:52 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-riscv@nongnu.org, qemu-ppc@nongnu.org Subject: [PATCH 41/42] tcg/sparc64: Drop is_64 test from tcg_out_qemu_ld data return Date: Fri, 7 Apr 2023 19:43:13 -0700 Message-Id: <20230408024314.3357414-43-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230408024314.3357414-1-richard.henderson@linaro.org> References: <20230408024314.3357414-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x632.google.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 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, SUSPICIOUS_RECIPS=2.51 autolearn=no 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 In tcg_canonicalize_memop, we remove MO_SIGN from MO_32 operations with TCG_TYPE_I32. Thus this is never set. We already have an identical test just above which does not include is_64 Signed-off-by: Richard Henderson --- tcg/sparc64/tcg-target.c.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/sparc64/tcg-target.c.inc b/tcg/sparc64/tcg-target.c.inc index 086981f097..f3e5e856d6 100644 --- a/tcg/sparc64/tcg-target.c.inc +++ b/tcg/sparc64/tcg-target.c.inc @@ -1220,7 +1220,7 @@ static void tcg_out_qemu_ld(TCGContext *s, TCGReg data, TCGReg addr, tcg_out_movi(s, TCG_TYPE_I32, TCG_REG_O2, oi); /* We let the helper sign-extend SB and SW, but leave SL for here. */ - if (is_64 && (memop & MO_SSIZE) == MO_SL) { + if ((memop & MO_SSIZE) == MO_SL) { tcg_out_ext32s(s, data, TCG_REG_O0); } else { tcg_out_mov(s, TCG_TYPE_REG, data, TCG_REG_O0);