From patchwork Tue May 1 18:04:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 134788 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp5239115lji; Tue, 1 May 2018 11:09:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZop9N3QdvrKrpodEnPdzAs6P4uG0aD0OmH686Z1EGKFUS8Fwufce674Y6MLTgY3ujtQP7fn X-Received: by 10.55.24.96 with SMTP id j93mr12729810qkh.11.1525198141138; Tue, 01 May 2018 11:09:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525198141; cv=none; d=google.com; s=arc-20160816; b=rJqoq8HYfeYjq5jFSgT0T1LVItLbSaJJk7FQ5k8e+OvIYNlML2rTKFoXz/WDB0aODh crNkTNzRGNFe8bQ6Qq8GIA6ExScxaRdbMqzTXH6Vt0r/pDzZ+optkH2K5X4PvXoSFPaI v3fjo5SaomrOy+Y/7CxPgo9XDtmI2396lbJ/VXoSiNCrG+ax14JpRlIh5Uw/e/lK3HEb znkVDXNjOtJroMJBGqdRH+8LajAe9oYBJufcHfsoooOpYjDXrgwsQiBuUSIjtnbfxiSN kcFiHgUTZn8It6VMCIMLdxJCdnz7HpBc9Y+03Vd8yPoyLEWdAn5WzHVLPVuC2uweBe+F BHIA== 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=B7Tp/8To9S3Hke3NcXQo34DBSqtfSx8QkH+6ZItMU0I=; b=gGB8q6wFv87scDjaK2aZu1TlGoddrINyuJg6FAbgBHVWJhwZo6gBBHSdGgHPXitdQB t2VlN4MK07uQwe4lpVK9d3KOR7KP8A54AsOJiEUHoXLzWKtS9t+SQ857X8qtylYLn8BQ Z7nfKzVXqHJgv3dPGU/1vEMm90gMRKHyl/QiHMDfjCVB3I2VvOeKLfPyIicARlNRdav+ wRd1ShjENVghUp/FzCjRBz/PJzFcuBZWHepJ5QwOCEWR9cSvKj8CUVHy57ezWxaRTt+d 1UpNgie2r2VRyOSRQYBesTCBfSUjPdpy6JlZftRz9DA/jOpwC6x8ja68sX2oWvo+gsgb f6DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=GimsKsc3; 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 b6si7767669qkg.359.2018.05.01.11.09.00 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 01 May 2018 11:09:01 -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=GimsKsc3; 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]:45553 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDZi0-0001tv-NW for patch@linaro.org; Tue, 01 May 2018 14:09:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDZeF-0008Hs-Nx for qemu-devel@nongnu.org; Tue, 01 May 2018 14:05:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDZeB-0000aZ-98 for qemu-devel@nongnu.org; Tue, 01 May 2018 14:05:07 -0400 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:34940) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fDZeB-0000Zt-3h for qemu-devel@nongnu.org; Tue, 01 May 2018 14:05:03 -0400 Received: by mail-pg0-x243.google.com with SMTP id j11-v6so8784915pgf.2 for ; Tue, 01 May 2018 11:05:03 -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=B7Tp/8To9S3Hke3NcXQo34DBSqtfSx8QkH+6ZItMU0I=; b=GimsKsc3bAYbCkfo4EdomUuvX0X69H+j1yh/hrEVLj3Ef40ImYErixfn2X5q+xVZnT T0RcUc/CZzuuHn7dmbloEuOYl/8ZwBBmB7Ex+ET/wzplxXyfvvp8QlEGJDfa71G061v/ /K1Byvjg2eGpwUWy1HugnNqUHPdT79mpHM4ho= 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=B7Tp/8To9S3Hke3NcXQo34DBSqtfSx8QkH+6ZItMU0I=; b=EVSHJw8I4zk2f73JmrhVqqPFo3LKwJ2/8KEGC9XnqHtxIbuHLzt8ZJoPrZNVY11EgJ x9hTtWdXxRaG17MwpydeNg0XAdA8wRWBH/dPDg2IWyiK6Dki2LpWVKiCJvnwbHGBmDCj /hjntXYCdQLdMmmp0MM/Dn818kZfBjuFCwaNdLlkgVrF8toUf+GmhNZ5Md7i4+88Ugbv k4hTissOjHEoMuUCiIX3CUKw3J6xnmHzrJeR6qon5CZXizDf3+zByBmYEAVGcxfwYChd gFT64j1fCtI0t+GRixGS5X0pB3qF0j1U+FJ9vGzdQDdLp0UBQ1TZ6qEvwahvs89s8Mpi NqPQ== X-Gm-Message-State: ALQs6tCP7Z8GqKBDg/mnquDZTiEHrfsbJvTPV6io7bGacdPgeteXAy9L yPS7epHjFYDUKQ+OIQuKbBXHKbMROZc= X-Received: by 2002:a63:7a05:: with SMTP id v5-v6mr13803160pgc.184.1525197901877; Tue, 01 May 2018 11:05:01 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-2-170.tukw.qwest.net. [97.113.2.170]) by smtp.gmail.com with ESMTPSA id j5sm23732224pfe.119.2018.05.01.11.05.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 May 2018 11:05:00 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 1 May 2018 11:04:55 -0700 Message-Id: <20180501180455.11214-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180501180455.11214-1-richard.henderson@linaro.org> References: <20180501180455.11214-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::243 Subject: [Qemu-devel] [PATCH 2/2] target/arm: Tidy condition in disas_simd_two_reg_misc 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: peter.maydell@linaro.org, qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Path analysis shows that size == 3 && !is_q has been eliminated. Fixes: Coverity CID1385853 Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.14.3 Reviewed-by: Alex Bennée diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 97950dce1a..6d49f30b4a 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -11473,7 +11473,11 @@ static void disas_simd_two_reg_misc(DisasContext *s, uint32_t insn) /* All 64-bit element operations can be shared with scalar 2misc */ int pass; - for (pass = 0; pass < (is_q ? 2 : 1); pass++) { + /* Coverity claims (size == 3 && !is_q) has been eliminated + * from all paths leading to here. + */ + tcg_debug_assert(is_q); + for (pass = 0; pass < 2; pass++) { TCGv_i64 tcg_op = tcg_temp_new_i64(); TCGv_i64 tcg_res = tcg_temp_new_i64();