From patchwork Wed Dec 3 14:22:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 41848 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7DF1825E88 for ; Wed, 3 Dec 2014 14:22:52 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id hs14sf6210436lab.9 for ; Wed, 03 Dec 2014 06:22:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mailing-list:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:sender :delivered-to:mime-version:date:message-id:subject:from:to:cc :content-type:x-original-sender:x-original-authentication-results; bh=Bko9oEBJML/Hfq4oFF3roZzekTU8FgerzeqBcSyqUvU=; b=lHVhfjoqPXZ5D60ELfqOevoiaU1I5Oy3z1RMyraxN3QtjTagOAZwz2nxDg88MOmCzG khHDAQmhazrCJJP/eQIQbrbrjnMv5mxBcRHPUrqTx68L/jn63nqQnWkQbo1pqwd0AeTi 3R3oP0kYqBrhvNCxarjkutMYPRkz1ZRzateCe2gKw/6NusYyknbAMXeChWt4Ptp9Tczg +uQ3jLQsUmOMGTuN5FtPnXEYgXi50rTR/fA9Jk8vStZi3hFoNp+BZ/BtgUOucCVKRBAL iOWg+LHelBXyHN0LgxA4rteB5zL1CcXh9r3vCTCFPpS7emyFXM8d3aQY4GYLY5mNBnEN LUcA== X-Gm-Message-State: ALoCoQmc+6yg04riTYwEbzrs9JTzszFxQBKHpu4eB1TLHrPoNRmmpnEtCM3N1HbcLbfjGCrnnzTr X-Received: by 10.112.14.2 with SMTP id l2mr1130109lbc.5.1417616571388; Wed, 03 Dec 2014 06:22:51 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.74 with SMTP id q10ls167245laq.43.gmail; Wed, 03 Dec 2014 06:22:51 -0800 (PST) X-Received: by 10.152.8.194 with SMTP id t2mr4463525laa.21.1417616571248; Wed, 03 Dec 2014 06:22:51 -0800 (PST) Received: from mail-la0-x234.google.com (mail-la0-x234.google.com. [2a00:1450:4010:c03::234]) by mx.google.com with ESMTPS id ku5si23208817lac.26.2014.12.03.06.22.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Dec 2014 06:22:51 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::234 as permitted sender) client-ip=2a00:1450:4010:c03::234; Received: by mail-la0-f52.google.com with SMTP id hs14so7753612lab.39 for ; Wed, 03 Dec 2014 06:22:51 -0800 (PST) X-Received: by 10.152.21.66 with SMTP id t2mr4418030lae.27.1417616571118; Wed, 03 Dec 2014 06:22:51 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp672643lbc; Wed, 3 Dec 2014 06:22:49 -0800 (PST) X-Received: by 10.70.88.231 with SMTP id bj7mr8945436pdb.168.1417616568763; Wed, 03 Dec 2014 06:22:48 -0800 (PST) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id go4si38458149pbc.156.2014.12.03.06.22.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Dec 2014 06:22:48 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-386451-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 18238 invoked by alias); 3 Dec 2014 14:22:14 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 18226 invoked by uid 89); 3 Dec 2014 14:22:13 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qa0-f41.google.com Received: from mail-qa0-f41.google.com (HELO mail-qa0-f41.google.com) (209.85.216.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 03 Dec 2014 14:22:11 +0000 Received: by mail-qa0-f41.google.com with SMTP id f12so10463542qad.0 for ; Wed, 03 Dec 2014 06:22:09 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.229.97.73 with SMTP id k9mr8297023qcn.15.1417616529113; Wed, 03 Dec 2014 06:22:09 -0800 (PST) Received: by 10.140.21.234 with HTTP; Wed, 3 Dec 2014 06:22:08 -0800 (PST) Date: Wed, 3 Dec 2014 15:22:08 +0100 Message-ID: Subject: [ARM,AArch64][testsuite] Fix vaddl and vaddw tests From: Christophe Lyon To: "gcc-patches@gcc.gnu.org" Cc: Ramana Radhakrishnan , Marcus Shawcroft X-IsSubscribed: yes X-Original-Sender: christophe.lyon@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::234 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@gcc.gnu.org X-Google-Group-Id: 836684582541 Hi, Here is a fix for typos in the AdvSimd intrinsic tests, where vaddl and vaddw didn't actually execute the tests. (The function was declared in main, instead of called). This patch also fixes the expected output for these tests. OK? Thanks Christophe. 2014-12-03 Christophe Lyon testsuite/ * gcc.target/aarch64/advsimd-intrinsics/vaddl.c: Actually execute the test. Fix expected output. * gcc.target/aarch64/advsimd-intrinsics/vaddw.c: Likewise. diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vaddl.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vaddl.c index 861abec..b974d44 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vaddl.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vaddl.c @@ -5,13 +5,13 @@ /* Expected results. */ VECT_VAR_DECL(expected,int,8,8) [] = { 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33 }; -VECT_VAR_DECL(expected,int,16,4) [] = { 0x33, 0x33, 0x33, 0x33 }; -VECT_VAR_DECL(expected,int,32,2) [] = { 0x33, 0x33 }; +VECT_VAR_DECL(expected,int,16,4) [] = { 0x3333, 0x3333, 0x3333, 0x3333 }; +VECT_VAR_DECL(expected,int,32,2) [] = { 0x33333333, 0x33333333 }; VECT_VAR_DECL(expected,int,64,1) [] = { 0x3333333333333333 }; -VECT_VAR_DECL(expected,uint,8,8) [] = { 0x3, 0x3, 0x3, 0x3, - 0x3, 0x3, 0x3, 0x3 }; -VECT_VAR_DECL(expected,uint,16,4) [] = { 0x37, 0x37, 0x37, 0x37 }; -VECT_VAR_DECL(expected,uint,32,2) [] = { 0x3, 0x3 }; +VECT_VAR_DECL(expected,uint,8,8) [] = { 0x33, 0x33, 0x33, 0x33, + 0x33, 0x33, 0x33, 0x33 }; +VECT_VAR_DECL(expected,uint,16,4) [] = { 0x3333, 0x3333, 0x3333, 0x3333 }; +VECT_VAR_DECL(expected,uint,32,2) [] = { 0x33333333, 0x33333333 }; VECT_VAR_DECL(expected,uint,64,1) [] = { 0x3333333333333333 }; VECT_VAR_DECL(expected,poly,8,8) [] = { 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33 }; @@ -50,10 +50,10 @@ VECT_VAR_DECL(expected,hfloat,32,4) [] = { 0x33333333, 0x33333333, #define TEST_MSG "VADDL" #endif -#define FNNAME1(NAME) void exec_ ## NAME (void) +#define FNNAME1(NAME) exec_ ## NAME #define FNNAME(NAME) FNNAME1(NAME) -FNNAME (INSN_NAME) +void FNNAME (INSN_NAME) (void) { /* Basic test: y=vaddl(x1,x2), then store the result. */ #define TEST_VADDL1(INSN, T1, T2, W, W2, N) \ @@ -117,6 +117,6 @@ FNNAME (INSN_NAME) int main (void) { - FNNAME (INSN_NAME); + FNNAME (INSN_NAME) (); return 0; } diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vaddw.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vaddw.c index 5804cd7..25a723b 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vaddw.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vaddw.c @@ -5,13 +5,13 @@ /* Expected results. */ VECT_VAR_DECL(expected,int,8,8) [] = { 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33 }; -VECT_VAR_DECL(expected,int,16,4) [] = { 0x33, 0x33, 0x33, 0x33 }; -VECT_VAR_DECL(expected,int,32,2) [] = { 0x33, 0x33 }; +VECT_VAR_DECL(expected,int,16,4) [] = { 0x3333, 0x3333, 0x3333, 0x3333 }; +VECT_VAR_DECL(expected,int,32,2) [] = { 0x33333333, 0x33333333 }; VECT_VAR_DECL(expected,int,64,1) [] = { 0x3333333333333333 }; -VECT_VAR_DECL(expected,uint,8,8) [] = { 0x3, 0x3, 0x3, 0x3, - 0x3, 0x3, 0x3, 0x3 }; -VECT_VAR_DECL(expected,uint,16,4) [] = { 0x37, 0x37, 0x37, 0x37 }; -VECT_VAR_DECL(expected,uint,32,2) [] = { 0x3, 0x3 }; +VECT_VAR_DECL(expected,uint,8,8) [] = { 0x33, 0x33, 0x33, 0x33, + 0x33, 0x33, 0x33, 0x33 }; +VECT_VAR_DECL(expected,uint,16,4) [] = { 0x3333, 0x3333, 0x3333, 0x3333 }; +VECT_VAR_DECL(expected,uint,32,2) [] = { 0x33333333, 0x33333333 }; VECT_VAR_DECL(expected,uint,64,1) [] = { 0x3333333333333333 }; VECT_VAR_DECL(expected,poly,8,8) [] = { 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33, 0x33 }; @@ -50,10 +50,10 @@ VECT_VAR_DECL(expected,hfloat,32,4) [] = { 0x33333333, 0x33333333, #define TEST_MSG "VADDW" #endif -#define FNNAME1(NAME) void exec_ ## NAME (void) +#define FNNAME1(NAME) exec_ ## NAME #define FNNAME(NAME) FNNAME1(NAME) -FNNAME (INSN_NAME) +void FNNAME (INSN_NAME) (void) { /* Basic test: y=vaddw(x1,x2), then store the result. */ #define TEST_VADDW1(INSN, T1, T2, W, W2, N) \ @@ -117,6 +117,6 @@ FNNAME (INSN_NAME) int main (void) { - FNNAME (INSN_NAME); + FNNAME (INSN_NAME) (); return 0; }