From patchwork Wed May 11 13:23:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 67519 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp224915qge; Wed, 11 May 2016 06:25:58 -0700 (PDT) X-Received: by 10.66.177.16 with SMTP id cm16mr4912239pac.23.1462973158366; Wed, 11 May 2016 06:25:58 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id hn5si9859064pac.203.2016.05.11.06.25.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 May 2016 06:25:58 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-427067-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-427067-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-427067-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:in-reply-to:references; q=dns; s= default; b=Szjn7e2IAIw/m6YrPAnCQJ6i0fbEqYLKs7Erizl+fo5llhl+Gbdhj SdEPCY+zvF8KpStDgnmLjqIXi/FVtBewge2YD1OZspzi126VgESNw7kjWGp5qZfp 2exiSKJ1+2INkzDkczNa7RtRFM/NhoJsgqrSE5+ZjsXWHOKVpcEEVw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:in-reply-to:references; s=default; bh=CmD8adxC8cfBlc1KFTsXs4HNViA=; b=abPxiw/vNa3vtDqTlIqY8nyDbdh5 3VYQEsQjFumGnPgjm3q4r/PM7+X7FbIteCFT44R21w6eyDt1jwY0dZ77kl+kF8Vr xmQsCXJehIspVGXIdaN1/dII8u4nqdijGBd2VdFZ4xmNnRisHALJI4EeKOcYdcES c4hidY5WdVPUMyg= Received: (qmail 83612 invoked by alias); 11 May 2016 13:24:21 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 83390 invoked by uid 89); 11 May 2016 13:24:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wm0-f48.google.com Received: from mail-wm0-f48.google.com (HELO mail-wm0-f48.google.com) (74.125.82.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 11 May 2016 13:24:03 +0000 Received: by mail-wm0-f48.google.com with SMTP id g17so82521526wme.1 for ; Wed, 11 May 2016 06:24:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=qGe7qly4hwX+hVE0QFpd2IU5aIS/0CNWa04xqhUtv0g=; b=VXJsUvgyEt91jsh8w9Nmj007SGTC0NyCX9GW5F5YGqSlFuW8m4cdFd6MXdSMzxDHn7 /aqMKOXXktZnDYByOhl4p8jR/SFgYYIP+e6XrQA1aRqqBrgJxF7ACZy1wYKXYIzmuNia DTQ3Wn2rCSTGmHjc8u3mNi8cXWaZ3huNOrIFPcXKkPuUJIXHBD/36pIGOzfTUo6JLjdB NIPjsMKetGt1EbqnzwkIigjwDvxwlNTVIc5oEjBMvYH8KUw6l6mIqee+vJBgd/VI7IDY 5qNSlE4kv9vkS/BK85UPwDN4bNSJgNnQDaPXaU8GoKyRDZPnu40kUSUCFDoLfMlEcg4g jr1g== X-Gm-Message-State: AOPr4FW4F7/ETP76+V2n/OnZwEoAaa9PdUp730z2YyrstLfd98JBLJ7v1qopVNa2djTJokZi X-Received: by 10.194.108.197 with SMTP id hm5mr3813861wjb.167.1462973040725; Wed, 11 May 2016 06:24:00 -0700 (PDT) Received: from gnx2647.guests.st.com (29-39.80-90.static-ip.oleane.fr. [90.80.39.29]) by smtp.gmail.com with ESMTPSA id u6sm35876719wmd.21.2016.05.11.06.23.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 May 2016 06:24:00 -0700 (PDT) From: Christophe Lyon To: gcc-patches@gcc.gnu.org Subject: [Patch ARM/AArch64 06/11] Add missing vtst_p8 and vtstq_p8 tests. Date: Wed, 11 May 2016 15:23:56 +0200 Message-Id: <1462973041-7911-7-git-send-email-christophe.lyon@linaro.org> In-Reply-To: <1462973041-7911-1-git-send-email-christophe.lyon@linaro.org> References: <1462973041-7911-1-git-send-email-christophe.lyon@linaro.org> X-IsSubscribed: yes 2016-05-02 Christophe Lyon * gcc.target/aarch64/advsimd-intrinsics/vtst.c: Add tests for vtst_p8 and vtstq_p8. Change-Id: Id555a9b3214945506a106e2465b42d38bf76a3a7 -- 1.9.1 diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vtst.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vtst.c index 9e74ffb..4c7ee79 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vtst.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vtst.c @@ -32,6 +32,14 @@ VECT_VAR_DECL(expected_unsigned,uint,16,8) [] = { 0x0, 0xffff, VECT_VAR_DECL(expected_unsigned,uint,32,4) [] = { 0x0, 0xffffffff, 0x0, 0xffffffff }; +/* Expected results with poly input. */ +VECT_VAR_DECL(expected_poly,uint,8,8) [] = { 0x0, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff }; +VECT_VAR_DECL(expected_poly,uint,8,16) [] = { 0x0, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff }; + #define INSN_NAME vtst #define TEST_MSG "VTST/VTSTQ" @@ -71,12 +79,14 @@ FNNAME (INSN_NAME) VDUP(vector2, , uint, u, 8, 8, 15); VDUP(vector2, , uint, u, 16, 4, 5); VDUP(vector2, , uint, u, 32, 2, 1); + VDUP(vector2, , poly, p, 8, 8, 15); VDUP(vector2, q, int, s, 8, 16, 15); VDUP(vector2, q, int, s, 16, 8, 5); VDUP(vector2, q, int, s, 32, 4, 1); VDUP(vector2, q, uint, u, 8, 16, 15); VDUP(vector2, q, uint, u, 16, 8, 5); VDUP(vector2, q, uint, u, 32, 4, 1); + VDUP(vector2, q, poly, p, 8, 16, 15); #define TEST_MACRO_NO64BIT_VARIANT_1_5(MACRO, VAR, T1, T2) \ MACRO(VAR, , T1, T2, 8, 8); \ @@ -109,6 +119,14 @@ FNNAME (INSN_NAME) CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected_unsigned, CMT); CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected_unsigned, CMT); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected_unsigned, CMT); + + /* Now, test the variants with poly8 as input. */ +#undef CMT +#define CMT " (poly input)" + TEST_BINARY_OP(INSN_NAME, , poly, p, 8, 8); + TEST_BINARY_OP(INSN_NAME, q, poly, p, 8, 16); + CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_poly, CMT); + CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected_poly, CMT); } int main (void)