From patchwork Thu Aug 9 03:40:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 143648 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1576862ljj; Wed, 8 Aug 2018 20:46:23 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxYVwq2JdYHMJkd/Wm+6G+SB9oxo5JPx/dPKBGPF9i7gYKkVSacTXUfw71B1IX1IND0iWbP X-Received: by 2002:a37:9f90:: with SMTP id i138-v6mr335360qke.113.1533786383821; Wed, 08 Aug 2018 20:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533786383; cv=none; d=google.com; s=arc-20160816; b=TRTskkQOCJanbXUIJ880ljQWm8z4fbVglGWAu3VXAttsb3RpqpMm6Nu7dmk0lxTbBq N0923zaVCDUsGgjKTzZqJZpIqruH2zY0vyIExHOccijjOOYdrvFpIkzYyJbmUOxcAMMj xOIas4HKaUizBEQlRqLFM+SeRZL6Fsd/scNrbmdP0buTipIsHj6knHT9Q6yZ05gLMS2d +twCs9NyZQrl+INKt50Fh9ptnNr/ZExPXOMWQTlZFhgb7u11UbAYKB22x7bF9vaqE9db z5DKWKOAQcfCT6SjPB5rwjRVp/n4rwXh+fJ2JiAh5Tpng4dnYOGdSRELhB/5BMFg7uSF xJig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=oB1SIrg6peK9wa8OQjaurgO0tZQqjrg+qYqLcGUVKpM=; b=fRDjkljQzn3itvWiou4IvF+QWSSijfNqhfLW54YTItedBHA87u5CiqpITG0iGzWZM9 k7eqKRjBZ6H8vvGhN+m9Yl9wuTnBaQJv2a1o2PA/c9ZMSK48dU54Ex4dtNV8rMuh6QMW 4fh7FTwSvDNGtfwaMHtAyDYJpSt82SPPDVYoFM22ZZbhodtnFoWALTEnkxTh+s2Z4OJZ R/M4y+sRIqqZsi94sMDXlejc+aQSIL2QE55NyH/3GucT8pgwmRBeEbg1PTWQ9PB3fvnC bY53aShfDJmxybJQggfanJ8QwQ56TeEgrV9tvOLud0Pv1JZGZpty5wgeFSmjQX5FlrMq BhOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=TWMWneuI; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 13-v6si6033936qtp.41.2018.08.08.20.46.23 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 08 Aug 2018 20:46:23 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=TWMWneuI; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:46401 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fnbu3-0001d0-7r for patch@linaro.org; Wed, 08 Aug 2018 23:46:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fnboX-0006cc-8n for qemu-devel@nongnu.org; Wed, 08 Aug 2018 23:40:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fnboW-00037c-Au for qemu-devel@nongnu.org; Wed, 08 Aug 2018 23:40:41 -0400 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:42845) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fnboW-000377-53 for qemu-devel@nongnu.org; Wed, 08 Aug 2018 23:40:40 -0400 Received: by mail-pf1-x442.google.com with SMTP id l9-v6so2140248pff.9 for ; Wed, 08 Aug 2018 20:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oB1SIrg6peK9wa8OQjaurgO0tZQqjrg+qYqLcGUVKpM=; b=TWMWneuIS22PxQFFimw4cF/L9iQfbyHI3I82kbq5TbpR1KMd4hiZTanXM5FKBUfCsh XGnbA5XM792IXiOUofL9KrssjttSfELhu6NiEj5psKRygP0ZUkp0gEeR1sK36vJiFkot KsGi3ISb/CK/5sgtZGgeEO7i+uW5Z2g+I6z6M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=oB1SIrg6peK9wa8OQjaurgO0tZQqjrg+qYqLcGUVKpM=; b=Hl2dYwHd+lWZhZe9DCWxI+q2Z8LI85G7i/UI2xKk0IBPP/I5tys2NbUJtkc4ePoGW8 3Kw1cHyeY4gruOmJvM3C1jc/kGQvnQiVKHGLrDBxUMnjQ4pXepAANn62c/VSJ2iYiq81 n46g5yCV5P6IX0sHzFcILTnxJpd6L+Mda0pQAHvZinPAaoxwCO5mBrPSO+scBy/cuba8 sxA5ds5vpwqmL/FWNm6j71XatsvBOpDRxCHn3sRwHbvVKlkIu06N9XmsJv3+yGB7/6cS 9x6R9EZ+OVmir3+3k5SAwYSkgXVatam799j62tETXAY+FLb0ubda0h2hV3pHNb55qlmP PsNQ== X-Gm-Message-State: AOUpUlGmQ8tbHA1XOAR/mrjid8vUuzOweq2exq8igeroi22Qrg2lQQmO s3vRm+83q5OwxeLpmT6vMImcUUxxNOQ= X-Received: by 2002:a63:2106:: with SMTP id h6-v6mr402169pgh.161.1533786038783; Wed, 08 Aug 2018 20:40:38 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-8-179.tukw.qwest.net. [97.113.8.179]) by smtp.gmail.com with ESMTPSA id q78-v6sm9674103pfi.185.2018.08.08.20.40.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 Aug 2018 20:40:37 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 8 Aug 2018 20:40:24 -0700 Message-Id: <20180809034033.10579-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180809034033.10579-1-richard.henderson@linaro.org> References: <20180809034033.10579-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::442 Subject: [Qemu-devel] [PATCH 02/11] target/arm: Fix typo in do_sat_addsub_64 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent.desnogues@gmail.com, peter.maydell@linaro.org, alex.bennee@linaro.org, qemu-stable@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Used the wrong temporary in the computation of subtractive overflow. Cc: qemu-stable@nongnu.org (3.0.1) Tested-by: Laurent Desnogues Reviewed-by: Laurent Desnogues Reported-by: Laurent Desnogues Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Alex Bennée diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 374051cd20..9dd4c38bab 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -1625,7 +1625,7 @@ static void do_sat_addsub_64(TCGv_i64 reg, TCGv_i64 val, bool u, bool d) /* Detect signed overflow for subtraction. */ tcg_gen_xor_i64(t0, reg, val); tcg_gen_sub_i64(t1, reg, val); - tcg_gen_xor_i64(reg, reg, t0); + tcg_gen_xor_i64(reg, reg, t1); tcg_gen_and_i64(t0, t0, reg); /* Bound the result. */