From patchwork Wed May 2 17:48:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 134859 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp963956lji; Wed, 2 May 2018 10:51:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqRZJpdrjvCA7MEdvIbZRajWSx+Q1LsIEqp9pgKI5c9mFyux3QaXBTljlRMS2Y9v4CY4778 X-Received: by 2002:a25:af8c:: with SMTP id g12-v6mr13235318ybh.133.1525283511164; Wed, 02 May 2018 10:51:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525283511; cv=none; d=google.com; s=arc-20160816; b=e1PrgDSJSu/4GiRaUM6TD/xpWAi38uTzdL/xLqrquXNFIViWsEz6QO6QAEWCEwAE07 Ujkor2iVJHEcnZy72KlXz/87GarpSBlj6HlHZ7uWJTszNWZCUPkVXuQMxPYNDm0cGb7p FWFxDDblRo6Y5dTFGHjqtf8t0OLLWiE7UeS5zMjtmVr4QGzvW6R/GQYU4sr2+4AyICZc yJHC/OtCHF2ZNtYtXsVeL8jmVREJoyhWkeSMgvBgJZcZ8Hxf2qESzzIy2NDHOmnvTpvx 7o/PbQS5GRmBWvi66RmnmgjoMju5iYZnd2iHB/zp+opjSDsQYd5/BepKzp4L2/gCz7o2 lTiw== 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=S5RU9eEG+8jocHjnBf6OhBHd5z3vDnB9kAxbQcUu2jM=; b=JtcdvgJz5MfyGaOMNHW8Sxr55BE1S1xMB1kIJrWKLD19XzcAhtduax2dPQVCa/8CRS eKYZKhp4nnvoViw5fkphF3o5WyqZQmnEVgjtQCHUwwi4ikg5rRi56qms4N9jM6YB4I7j TGxcHUxqshVMEYNnwx7QVy9t9LeuYz/jg59oLhJfMFv9p4YLgvLbAcf4iosBpt6/6bvz 53EHj3hE7h2N2PGyJJHrGGH0eBlJvovytD+LayuYHet+joJtshkwlLa6ChsNtpo3oXSI GRt2NLmxaXz1fWD/4W7x5U/Ew3vRgZMtWbhYck/IWYZUqSDAljjzN6U/EVq9g9U6dkbg do6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ijhq0fZn; 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 x190-v6si6072707vkx.59.2018.05.02.10.51.50 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 02 May 2018 10:51:51 -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=ijhq0fZn; 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]:51889 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDvuw-0008Re-Hy for patch@linaro.org; Wed, 02 May 2018 13:51:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDvs1-0005WR-C8 for qemu-devel@nongnu.org; Wed, 02 May 2018 13:48:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDvrz-0004Bf-2g for qemu-devel@nongnu.org; Wed, 02 May 2018 13:48:49 -0400 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:38399) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fDvry-0004BQ-SZ for qemu-devel@nongnu.org; Wed, 02 May 2018 13:48:46 -0400 Received: by mail-pf0-x244.google.com with SMTP id o76so12408866pfi.5 for ; Wed, 02 May 2018 10:48:46 -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=S5RU9eEG+8jocHjnBf6OhBHd5z3vDnB9kAxbQcUu2jM=; b=ijhq0fZnLT3EMqgnguL7L2rGFghB6OwB8HPsUnXqSsfwak9hHMC7pdwiM6U/5sh29Z QfEs8roOetxiwRpM40zSmZKdCUp1sCsBMlb19Rb1DomGslFK/9lehVWxEXnFivwD7eTf CqfeFkz1/E7HjZm65PN0dLfS91zhusa4vrGXw= 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=S5RU9eEG+8jocHjnBf6OhBHd5z3vDnB9kAxbQcUu2jM=; b=NGZDqlnzUFFamPEbOYw5RbRbByiriP0FaF0AT714rr85FTRjSZjs8uHILs1TMyVVej fmOZKHxp8QGsJ7WFcxff+2ukNZxsurmNdMAaExpXT+Gpgs9DRmjGiykEuPamw5jGpdpL 9xewq/RAeyp1wUChXbD1sC0xPeCHJQzQnC0n2+fHewiA35IE7YYQq5e5beM6EBhc8zvu oA77IX2HqlqsY24nKQuWpWnsvsrvV1fVH6n6uF2JsDTBwWLBxK+dC9Zv0yqQV5ZMSrRU 0PcgmpDZmjllLUXTOGLiWFIlDMOkKkHmN9SjmDSAWSfiG8PipYBs5086X8nS9EyETkW0 4GTA== X-Gm-Message-State: ALQs6tBjoQ2TS0untKqKqi2822uokbMh8dDus+KT0mIl8ijeHjhZPxOH kwNY+AZl/2vBz8wVOpxfFgC9uTcjLU4= X-Received: by 2002:a63:751d:: with SMTP id q29-v6mr17002631pgc.269.1525283325575; Wed, 02 May 2018 10:48:45 -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 w7sm22275533pfn.83.2018.05.02.10.48.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 May 2018 10:48:44 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 2 May 2018 10:48:40 -0700 Message-Id: <20180502174842.16253-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180502174842.16253-1-richard.henderson@linaro.org> References: <20180502174842.16253-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:c00::244 Subject: [Qemu-devel] [PULL 3/5] tcg: Allow wider vectors for cmp and mul 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 Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" In db432672, we allow wide inputs for operations such as add. However, in 212be173 and 3774030a we didn't do the same for compare and multiply. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- tcg/tcg-op-vec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.14.3 diff --git a/tcg/tcg-op-vec.c b/tcg/tcg-op-vec.c index 70ec889bc1..2ca219734d 100644 --- a/tcg/tcg-op-vec.c +++ b/tcg/tcg-op-vec.c @@ -355,8 +355,8 @@ void tcg_gen_cmp_vec(TCGCond cond, unsigned vece, TCGType type = rt->base_type; int can; - tcg_debug_assert(at->base_type == type); - tcg_debug_assert(bt->base_type == type); + tcg_debug_assert(at->base_type >= type); + tcg_debug_assert(bt->base_type >= type); can = tcg_can_emit_vec_op(INDEX_op_cmp_vec, type, vece); if (can > 0) { vec_gen_4(INDEX_op_cmp_vec, type, vece, ri, ai, bi, cond); @@ -377,8 +377,8 @@ void tcg_gen_mul_vec(unsigned vece, TCGv_vec r, TCGv_vec a, TCGv_vec b) TCGType type = rt->base_type; int can; - tcg_debug_assert(at->base_type == type); - tcg_debug_assert(bt->base_type == type); + tcg_debug_assert(at->base_type >= type); + tcg_debug_assert(bt->base_type >= type); can = tcg_can_emit_vec_op(INDEX_op_mul_vec, type, vece); if (can > 0) { vec_gen_3(INDEX_op_mul_vec, type, vece, ri, ai, bi);