From patchwork Tue Jun 29 18:54:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 468378 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp5274982jao; Tue, 29 Jun 2021 13:04:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1j3Jl1uoROu9ePU/3i30ESIoLHwNVg70LkLA0G/7zLwrHqTMauapnW2f9CSt0tGy5F8Xx X-Received: by 2002:a25:c9c7:: with SMTP id z190mr40340604ybf.21.1624997054971; Tue, 29 Jun 2021 13:04:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624997054; cv=none; d=google.com; s=arc-20160816; b=Smndz1Ffiy4/nPtGzK5uGlRgvT+N0ULpxwL3neu8WkHqsvJ5xz8vGFUfCUgOCZ/cXO tmsVVibhw8l1hcDi4lemg0W0zjyt9uQo5YcH8pl9f6rhrbv0pG4CSzhLAHFJw+ENFlTw jj9pk8ahgCboO7jkzz5KeQmRRh8xoF/AxTUJftrlRYplFldIhweeRXI9TxZDdnwfiWkR iY1SkjHnJ9P19urOEL4IS3AydB2Gt0J2gxoX/60tLSySqQTUnBkysBpW8ST95ihYnhC2 5UtixIMLSbEWWIpq2v1gVUo+6nf5ji5g2sWVAMXUA4eDR3SWGp+s5/e5pdB1ANmRmF2h 5lnQ== 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=Y/anbb6DPNvIO8E9zByeUSadBR7zd/opSVuaQ6a6eP4=; b=LV8dxWy2dq/WNcfyVZh8+UhQczWCBR2ENHb1seZMkIFG1Jpbflitqro+fPt+cpslZf kWE2F1GFBA25WJD0yk0xbB/zHzBCaz5hAIMiBhjccIVTzn3Ns8u0v38U18ggGccwWAgN EhAFWzJPMLZYuaZLXdOWcEl8awcg1d/DVzFClhVeOY/DKu+pxNn/RY0lgt+H/ToPTI0Y eNZXAmvQJKFYXivIXGiOaT8uYucX+O61aYdJ+e99fGBjyaXUCSJEympdlXsajxMX6uY4 QZ5t1k1lGb+SVG8HfggM2uSiSU0ckhsTa+nimAqpKQe0BSszR/DRiSDI6SSU4biClOA5 9RJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=BzmcQhDa; 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=fail (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 y11si4017663ybp.82.2021.06.29.13.04.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 Jun 2021 13:04:14 -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=fail header.i=@linaro.org header.s=google header.b=BzmcQhDa; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyJxt-0000xB-Us for patch@linaro.org; Tue, 29 Jun 2021 16:04:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyIwl-0004JE-2c for qemu-devel@nongnu.org; Tue, 29 Jun 2021 14:58:59 -0400 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:40501) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyIwO-00031Z-K0 for qemu-devel@nongnu.org; Tue, 29 Jun 2021 14:58:58 -0400 Received: by mail-pg1-x536.google.com with SMTP id g22so1104524pgl.7 for ; Tue, 29 Jun 2021 11:58:35 -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=Y/anbb6DPNvIO8E9zByeUSadBR7zd/opSVuaQ6a6eP4=; b=BzmcQhDaQ52jEGbZRotnM66CCSOsQTiSBKGl+eB4MFyPhLE8n30V9QSbs3E6Mp9yu9 M+uliDyM5iXLfEiqdcaRaq4x1ffL5+sJkCTFLjAFSE7kBi9jjjyRiPe5xh3eqY+faAdF RpL+M6fZ/rZpW+YyvqLJRs/671nf26E0rLyoFhC5f8wHkPHfS3g5da0QmJJ3cudl6dqh kHjp0t3E/SLg5K1WiecFZJqVusHb9o0FAp3KfT9ztApyVsckUt/52bZaUzh5m8V4+/KM LaDuEj3njsnQXEKe6UrMt/0wUwgLowhwmYQOy5H0X8YGPCF2UZXgBumgfF9fqkPPct4p nKoQ== 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=Y/anbb6DPNvIO8E9zByeUSadBR7zd/opSVuaQ6a6eP4=; b=hFeJdBwUgL5wobQ9C2ZACRbXtcGOLMGJ+ujIiGz926cZq2QZ2gS0L4drUCxLC26dkO KIa+05Z/P3klXHUkpWeZRgr6PDnERY/yY9h/sX/8y8mTK+Hiz3gcFOzMXWS1+4Dbdw/+ vy/vnTQeqaC5ldbAg/4hFWv93yZlXMjiOApSHJHlOC7E7RYUoaCHEU6rZg9pLVvVLznQ PZfJ1hZnZEPZGy3ymi3JQfWmGcnQ72ciUjff1CTc21pjVQaOim6lsPnTIBC8tHtf39t+ 4To7tI3/k/Lq+ctqptNoWU65tC2Vy57vtt6pIVRzkbCaDOgi2qhI9IAJYwtcZoUYBPDF NEmQ== X-Gm-Message-State: AOAM5328ZF/9tiexS8cwvU3Pd0C3ZhiUBQqVTn/UpU3Ymbm3Mof6sYci YLeXXAyqtjQf2lpxmPfbGotVPpY5o92ydQ== X-Received: by 2002:a62:150c:0:b029:30d:fe79:c343 with SMTP id 12-20020a62150c0000b029030dfe79c343mr6580239pfv.29.1624993114955; Tue, 29 Jun 2021 11:58:34 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id 21sm18002849pfh.103.2021.06.29.11.58.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Jun 2021 11:58:34 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 56/63] target/arm: Improve vector REV Date: Tue, 29 Jun 2021 11:54:48 -0700 Message-Id: <20210629185455.3131172-57-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210629185455.3131172-1-richard.henderson@linaro.org> References: <20210629185455.3131172-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x536.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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 , =?utf-8?q?Philippe_Mathieu-D?= =?utf-8?b?YXVkw6k=?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We can eliminate the requirement for a zero-extended output, because the following store will ignore any garbage high bits. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index 304fd3d370..1a40e49db7 100644 --- a/target/arm/translate-a64.c +++ b/target/arm/translate-a64.c @@ -12444,12 +12444,10 @@ static void handle_rev(DisasContext *s, int opcode, bool u, read_vec_element(s, tcg_tmp, rn, i, grp_size); switch (grp_size) { case MO_16: - tcg_gen_bswap16_i64(tcg_tmp, tcg_tmp, - TCG_BSWAP_IZ | TCG_BSWAP_OZ); + tcg_gen_bswap16_i64(tcg_tmp, tcg_tmp, TCG_BSWAP_IZ); break; case MO_32: - tcg_gen_bswap32_i64(tcg_tmp, tcg_tmp, - TCG_BSWAP_IZ | TCG_BSWAP_OZ); + tcg_gen_bswap32_i64(tcg_tmp, tcg_tmp, TCG_BSWAP_IZ); break; case MO_64: tcg_gen_bswap64_i64(tcg_tmp, tcg_tmp);