From patchwork Tue Mar 17 19:00:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 184669 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp4505779ile; Tue, 17 Mar 2020 12:05:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vttrwKS2rD7iJWM0DPTf1ZW3DpaY2YvSh0bgw4RvPwyAveVK2gddOK7Z0z8SHnGge+NSeSH X-Received: by 2002:ac8:6c6:: with SMTP id j6mr628152qth.231.1584471940112; Tue, 17 Mar 2020 12:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584471940; cv=none; d=google.com; s=arc-20160816; b=srjpcaIW9YN3/Cd/9D2Vw43uRD2aC3U2pECeUq1/dRIMesObPBdGC+dxmQ/rx3vUWV CkD1jRecTy249OqQ7SiHiMlALpPoUZN/Yuqzwd6dR680XKosTd98JirhIgdPNIP7XQh8 w5crh0KgLjCHp3hf9sZiwXqCElwAoS3GkeEnQ9XjcKj2ldazt8+APBvfGvflQOSMNX3A j/rzMrO8mYA1fzJ1DNT43+9t8uJAVfhr5a4eAV6clRWvv2w83/2LrozlSZgoU4Mc2HXO IILAMMPskiAdqiRaoyqUcHuNlY7M1DNyBgZfNeM8kIFC8UELCLLTmf/MIO+O77OzukFX bVpQ== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=cjiEN6evoksJ22gJdgVrmGMglErN9l7nWJMK6r0f5rQ=; b=Y7SH5DN/21T/RJcAZ5+Jh3J1b0E0aaBrITbMyqP6jHt0RuaffOSjUCF/c8NiiAe9Tx jwvGaBCBMM3NObk8og/WOExJeRUD4CUTWmj4C5iJ8mvBDrI9Qe2/VOhdntuPmrPJjHua cCwvMKz/8uobFtrpqsG7baJhgZ166OdHLyBEw4IXRWBF4ePI1NvYM+kP/QgCRm23Oq8Z dk73QR1YJXOA+b+VXxb7Nz+A65ui+SOAWNrp/exWV4U/4O0lCLNuxTGhJf/oKlXXBwR9 /RYOU38CvY7d+o53p0aXk5WxCh79jx0E3O92d0zkOnxKJhXP7wMVldF/FiDLk4Wihyku 1Qpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BGfglrrd; 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 37si2315560qtb.216.2020.03.17.12.05.40 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Mar 2020 12:05:40 -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=BGfglrrd; 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]:39998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEHX1-00055d-JS for patch@linaro.org; Tue, 17 Mar 2020 15:05:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33331) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEHRx-0007G1-5m for qemu-devel@nongnu.org; Tue, 17 Mar 2020 15:00:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEHRw-0004iv-1w for qemu-devel@nongnu.org; Tue, 17 Mar 2020 15:00:25 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:35567) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jEHRv-0004eO-RO for qemu-devel@nongnu.org; Tue, 17 Mar 2020 15:00:23 -0400 Received: by mail-pf1-x42e.google.com with SMTP id u68so12461172pfb.2 for ; Tue, 17 Mar 2020 12:00:23 -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 :mime-version:content-transfer-encoding; bh=cjiEN6evoksJ22gJdgVrmGMglErN9l7nWJMK6r0f5rQ=; b=BGfglrrdGEDaRy8KlNhNP5WNVPSYFSqebEGhUJXsQRGcgeLX7WtOHjk4NPiJ0TLJ2J 02eQrrlbwUBKAVBKnnT6mx4OmlCShgO2tVDB6gXaIs3ak2Z92Uvp999dhDfp0pY/kH9H +meosza+IBTpfZpi6xZJQ/fAf5vJAiGHZRJn1G7GGtyPqpweg9iwi+38qxasbQHsgLeu eOsWhrKSTTA0kZw7QVxfTvH0XIGAEWjevX9I5HE/NsY16cdks+eH/zvmKy99swGD9wUC JNgbsIxU6zvQOezC8nN/aLQsQQ4+7BV+cTvzDT/2JEKdyxCAWcbVOkP/YZ6+6ElmDagr 2okQ== 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:mime-version:content-transfer-encoding; bh=cjiEN6evoksJ22gJdgVrmGMglErN9l7nWJMK6r0f5rQ=; b=arbKbuuUQZRLpLSUjOspvsijWAZDbsfwETp1zH470z9kE+NxberdW1aK1lryUHzL/B QJ30ruDOz63qnWTq4I8w6jl7QMbbEYUNi7Ric8FOjPH0MoVB989rFZGqOq/F0etMj1RV W/HWQM0iFyHgFIX3ZP+3D08hr2kNboyptT+szu47dn8JSXtAa9eAgnIfyZ70l56/PHuK 4tqsYI89S2Nz7NMw9gqdqPJ+jKVKnZDQIoVF4qUcJgTOCglem8n+i8klIeGQrhC0M/kH b4sm6iRO/+YQhO551yDWYvi0f9y0mLjpfoEd3iz+MMEmP1n1q9oQ5l9NNuc/uiReZLPd fcGA== X-Gm-Message-State: ANhLgQ2JI/mDfK8RlzeoIxl2uYaGInzis15ji/DNLffXWL+SUPtWnQ6b CDNiY5x/mtYYi4tdyIctf6mdYuPKuIU= X-Received: by 2002:a62:7ad7:: with SMTP id v206mr169673pfc.181.1584471622374; Tue, 17 Mar 2020 12:00:22 -0700 (PDT) Received: from localhost.localdomain (97-126-123-70.tukw.qwest.net. [97.126.123.70]) by smtp.gmail.com with ESMTPSA id y13sm3738411pfp.88.2020.03.17.12.00.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Mar 2020 12:00:21 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 5/5] tcg: Remove tcg-runtime-gvec.c DO_CMP0 Date: Tue, 17 Mar 2020 12:00:13 -0700 Message-Id: <20200317190013.25036-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200317190013.25036-1-richard.henderson@linaro.org> References: <20200317190013.25036-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::42e X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 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" Partial cleanup from the CONFIG_VECTOR16 removal. Replace DO_CMP0 with its scalar expansion, a simple negation. Signed-off-by: Richard Henderson --- accel/tcg/tcg-runtime-gvec.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.20.1 diff --git a/accel/tcg/tcg-runtime-gvec.c b/accel/tcg/tcg-runtime-gvec.c index f2199f14b4..ca449702e6 100644 --- a/accel/tcg/tcg-runtime-gvec.c +++ b/accel/tcg/tcg-runtime-gvec.c @@ -860,15 +860,13 @@ void HELPER(gvec_sar64v)(void *d, void *a, void *b, uint32_t desc) clear_high(d, oprsz, desc); } -#define DO_CMP0(X) -(X) - #define DO_CMP1(NAME, TYPE, OP) \ void HELPER(NAME)(void *d, void *a, void *b, uint32_t desc) \ { \ intptr_t oprsz = simd_oprsz(desc); \ intptr_t i; \ for (i = 0; i < oprsz; i += sizeof(TYPE)) { \ - *(TYPE *)(d + i) = DO_CMP0(*(TYPE *)(a + i) OP *(TYPE *)(b + i)); \ + *(TYPE *)(d + i) = -(*(TYPE *)(a + i) OP *(TYPE *)(b + i)); \ } \ clear_high(d, oprsz, desc); \ } @@ -886,7 +884,6 @@ DO_CMP2(16) DO_CMP2(32) DO_CMP2(64) -#undef DO_CMP0 #undef DO_CMP1 #undef DO_CMP2