From patchwork Tue Jan 17 08:52:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 91602 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp391565qgi; Tue, 17 Jan 2017 00:52:49 -0800 (PST) X-Received: by 10.84.233.136 with SMTP id l8mr56643362plk.169.1484643169259; Tue, 17 Jan 2017 00:52:49 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id y3si24247471pgc.54.2017.01.17.00.52.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jan 2017 00:52:49 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-446312-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-446312-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-446312-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=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 :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=GBeRPgHGl3oZfkxwog+waYtS6j1mcWXk5zcnDgZQLZTjXF vHf2fmZxaza/0P244XfTtAz5ZhvtWK6585aloMM2rF9mhl4As6ZRc/cFQbBa4n1O 0b9BsXbc8gGHhB1V0H6LpjPeNVCtawWlZUVB1NiyeiRk78plVsHF6WmZxw5OQ= 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 :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=kfyJ6mUzYVb57orONBV0v5f0vbo=; b=KUorGQ/CrXh66m/+opc4 l74nuTqguBw73cCAMardTJdgJEmy6+0ECVibdSxu0C0k2LaenjGcDiYK73pLy4Yw Y+baD/jyGPHupSVMVVna0gMIOKAvetTgzirSLVMhKu23O0N6UoiLg0lQE0wepV5A 8ePJJtwG22ynfptHS0KhNN0= Received: (qmail 33507 invoked by alias); 17 Jan 2017 08:52:24 -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 33492 invoked by uid 89); 17 Jan 2017 08:52:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=prix, poly, sk:christo, 4077 X-HELO: mail-qt0-f173.google.com Received: from mail-qt0-f173.google.com (HELO mail-qt0-f173.google.com) (209.85.216.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 17 Jan 2017 08:52:12 +0000 Received: by mail-qt0-f173.google.com with SMTP id v23so144866255qtb.0 for ; Tue, 17 Jan 2017 00:52:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rq7zpsAgzyMBReoY1NFXC02u/V8d1QO5XbzIXt+TpPE=; b=TxwgejSElFigvJQTDBe269Je40scQZ7/ZsS8iko+gUdfGXY7/9aqVUcseK1+GPGQg6 YQj1auOT07vMN+0kvnVHb3WHUZw6QanvKjOQlhVdGK0gbMInsFP7eL/8j0/vEzfnwnbD S8wQr9fnky9E7TP6GmCxyy5SE+uAaJUrX/1CvNRMBwdk1d5YYb9LmJK/B/F311TplLkR qlRWav66eQ+nBC99joS5az6kEj0SWmC/HCOSxLeAGgg2BbTPZ1BgpzXNN5yCGLJBsKD0 VbSi1S9Wt9aJ7kiQ7UNe1N9ggdcnOfEC+Wc8XGjujZqw7bX0jNernvVhC/Qh+2RfhLlL iCZg== X-Gm-Message-State: AIkVDXLQDaxuu+e5QCsEkM87rBLiR8eXh8ruoDapQd3MIMQJiAVihaeuRAaYD6QCkXLx0xmcv1aSAe3bGvtJQ29E X-Received: by 10.55.44.193 with SMTP id s184mr37164292qkh.278.1484643129946; Tue, 17 Jan 2017 00:52:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.23.133 with HTTP; Tue, 17 Jan 2017 00:52:09 -0800 (PST) From: Christophe Lyon Date: Tue, 17 Jan 2017 09:52:09 +0100 Message-ID: Subject: [ARM,AArch64][testsuite] Fix format string in AdvSIMD tests To: "gcc-patches@gcc.gnu.org" X-IsSubscribed: yes Hi, This patch fixes inconsistencies in the format strings used to emit error messages when problems are detected in the AdvSIMD tests. They are not used normally since there is currently no error, but Doko complained about warnings when he runs the testsuite with -Wformat=1. The patch consists in: * New CHECK_POLY() helper, uses an union to print poly*_t values. * Call it when needed (everywhere the intrinsic result is of poly*_t type) * Fix a few places where PRIxNN didn't match the size of the actual value. Tested on aarch64 and arm with no regression. Additional runs of the tests with -Wformat=1 showed no warning. Is it OK for now, or should I wait until stage1? Thanks, Christophe gcc/testsuite/ChangeLog: 2017-01-17 Christophe Lyon * gcc.target/aarch64/advsimd-intrinsics/arm-neon-ref.h (CHECK_POLY): New. (CHECK_RESULTS_NAMED_NO_FP16): Call CHECK_POLY instead of CHECK for poly*_t types. * gcc.target/aarch64/advsimd-intrinsics/vcnt.c (FNNAME): Likewise. * gcc.target/aarch64/advsimd-intrinsics/vcombine.c (void exec_vcombine): Likewise. * gcc.target/aarch64/advsimd-intrinsics/vcreate.c (FNNAME): Likewise. * gcc.target/aarch64/advsimd-intrinsics/vget_high.c (void exec_vget_high): Likewise. * gcc.target/aarch64/advsimd-intrinsics/vget_low.c (void exec_vget_low): Likewise. * gcc.target/aarch64/advsimd-intrinsics/vldX.c (void exec_vldX): Likewise. * gcc.target/aarch64/advsimd-intrinsics/vldX_dup.c (void exec_vldX_dup): Likewise. * gcc.target/aarch64/advsimd-intrinsics/vldX_lane.c (void exec_vldX_lane): Likewise. * gcc.target/aarch64/advsimd-intrinsics/vmul.c: Likewise. * gcc.target/aarch64/advsimd-intrinsics/vmvn.c: Likewise. * gcc.target/aarch64/advsimd-intrinsics/vqtbX.c (void exec_vqtbX): Likewise. * gcc.target/aarch64/advsimd-intrinsics/vreinterpret_p128.c: Likewise. * gcc.target/aarch64/advsimd-intrinsics/vrev.c (void exec_vrev): Likewise. * gcc.target/aarch64/advsimd-intrinsics/vsXi_n.inc: Likewise. * gcc.target/aarch64/advsimd-intrinsics/vshuffle.inc: Likewise. * gcc.target/aarch64/advsimd-intrinsics/vsli_n.c (void vsli_extra): Likewise. * gcc.target/aarch64/advsimd-intrinsics/vsri_n.c (void vsri_extra): Likewise. * gcc.target/aarch64/advsimd-intrinsics/vstX_lane.c (void exec_vstX_lane): Likewise. * gcc.target/aarch64/advsimd-intrinsics/vtbX.c (void exec_vtbX): Likewise. * gcc.target/aarch64/advsimd-intrinsics/p64_p128.c (int main): Likewise. (TEST_VGET_LANE): Cast to uint to avoid warning. * gcc.target/aarch64/advsimd-intrinsics/unary_sat_op.inc (void FNNAME): Fix PRIx format for int16_t, int32_t, uint16_t, uint32_t. * gcc.target/aarch64/advsimd-intrinsics/vfms_vfma_n.c (void exec_vfma_vfms_n): Fix PRIx format for float64_t. * gcc.target/aarch64/advsimd-intrinsics/vmovn.c (void exec_vmovn): Fix PRIx format for int8_t, int16_t, uint8_t, uint16_t. * gcc.target/aarch64/advsimd-intrinsics/vmul_lane.c (void exec_vmul_lane): Fix PRIx format for int16_t, uint16_t. * gcc.target/aarch64/advsimd-intrinsics/vmul_n.c: Likewise. * gcc.target/aarch64/advsimd-intrinsics/vmull.c (void exec_vmull): Fix PRIx format for int16_t, int64_t, uint16_t, uint64_t. Call CHECK_POLY instead of CHECK for poly64_t types. * gcc.target/aarch64/advsimd-intrinsics/vmull_lane.c (void exec_vmull_lane): Fix PRIx format for int64_t, uint64_t. * gcc.target/aarch64/advsimd-intrinsics/vpXXX.inc: Fix PRIx format for int8_t, int16_t, uint8_t, uint16_t. * gcc.target/aarch64/advsimd-intrinsics/vqabs.c (void vqabs_extra): Fix PRIx format for int16_t, int32_t, uint16_t, uint32_t. * gcc.target/aarch64/advsimd-intrinsics/vqdmull.c: Fix PRIx format for int32_t, int64_t. * gcc.target/aarch64/advsimd-intrinsics/vqneg.c (void vqneg_extra): Fix PRIx format for int16_t, int32_t. * gcc.target/aarch64/advsimd-intrinsics/vreinterpret_p64.c (TEST_VREINTERPRET_TO_POLY): New. (main): Call TEST_VREINTERPRET_TO_POLY instead of TEST_VREINTERPRET where needed. diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/arm-neon-ref.h b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/arm-neon-ref.h index 4728639..fde6029 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/arm-neon-ref.h +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/arm-neon-ref.h @@ -128,6 +128,35 @@ extern size_t strlen(const char *); fprintf(stderr, "CHECKED %s %s\n", STR(VECT_TYPE(T, W, N)), MSG); \ } +/* poly variant. */ +#define CHECK_POLY(MSG,T,W,N,FMT,EXPECTED,COMMENT) \ + { \ + int i; \ + for(i=0; i 0 ? COMMENT : ""); \ + abort(); \ + } \ + } \ + fprintf(stderr, "CHECKED %s %s\n", STR(VECT_TYPE(T, W, N)), MSG); \ + } + /* Clean buffer with a non-zero pattern to help diagnose buffer overflows. */ #define CLEAN_PATTERN_8 0x33 @@ -218,8 +247,8 @@ extern ARRAY(expected, hfloat, 64, 2); CHECK(test_name, uint, 16, 4, PRIx16, EXPECTED, comment); \ CHECK(test_name, uint, 32, 2, PRIx32, EXPECTED, comment); \ CHECK(test_name, uint, 64, 1, PRIx64, EXPECTED, comment); \ - CHECK(test_name, poly, 8, 8, PRIx8, EXPECTED, comment); \ - CHECK(test_name, poly, 16, 4, PRIx16, EXPECTED, comment); \ + CHECK_POLY(test_name, poly, 8, 8, PRIx8, EXPECTED, comment); \ + CHECK_POLY(test_name, poly, 16, 4, PRIx16, EXPECTED, comment); \ CHECK_FP(test_name, float, 32, 2, PRIx32, EXPECTED, comment); \ \ CHECK(test_name, int, 8, 16, PRIx8, EXPECTED, comment); \ @@ -230,8 +259,8 @@ extern ARRAY(expected, hfloat, 64, 2); CHECK(test_name, uint, 16, 8, PRIx16, EXPECTED, comment); \ CHECK(test_name, uint, 32, 4, PRIx32, EXPECTED, comment); \ CHECK(test_name, uint, 64, 2, PRIx64, EXPECTED, comment); \ - CHECK(test_name, poly, 8, 16, PRIx8, EXPECTED, comment); \ - CHECK(test_name, poly, 16, 8, PRIx16, EXPECTED, comment); \ + CHECK_POLY(test_name, poly, 8, 16, PRIx8, EXPECTED, comment); \ + CHECK_POLY(test_name, poly, 16, 8, PRIx16, EXPECTED, comment); \ CHECK_FP(test_name, float, 32, 4, PRIx32, EXPECTED, comment); \ } \ diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/p64_p128.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/p64_p128.c index 8907b38..7c5bca2 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/p64_p128.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/p64_p128.c @@ -196,8 +196,8 @@ int main (void) TEST_VBSL(uint, , poly, p, 64, 1); TEST_VBSL(uint, q, poly, p, 64, 2); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vbsl_expected, ""); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vbsl_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vbsl_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vbsl_expected, ""); /* vceq_p64 tests. */ #undef TEST_MSG @@ -248,7 +248,7 @@ int main (void) TEST_VCOMBINE(poly, p, 64, 1, 2); - CHECK(TEST_MSG, poly, 64, 2, PRIx16, vcombine_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vcombine_expected, ""); /* vcreate_p64 tests. */ #undef TEST_MSG @@ -271,7 +271,7 @@ int main (void) TEST_VCREATE(poly, p, 64, 1); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vcreate_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vcreate_expected, ""); /* vdup_lane_p64 tests. */ #undef TEST_MSG @@ -295,8 +295,8 @@ int main (void) TEST_VDUP_LANE(, poly, p, 64, 1, 1, 0); TEST_VDUP_LANE(q, poly, p, 64, 2, 1, 0); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vdup_lane_expected, ""); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vdup_lane_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vdup_lane_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vdup_lane_expected, ""); /* vdup_n_p64 tests. */ #undef TEST_MSG @@ -320,16 +320,16 @@ int main (void) switch (i) { case 0: - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vdup_n_expected0, ""); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vdup_n_expected0, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vdup_n_expected0, ""); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vdup_n_expected0, ""); break; case 1: - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vdup_n_expected1, ""); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vdup_n_expected1, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vdup_n_expected1, ""); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vdup_n_expected1, ""); break; case 2: - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vdup_n_expected2, ""); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vdup_n_expected2, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vdup_n_expected2, ""); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vdup_n_expected2, ""); break; default: abort(); @@ -366,8 +366,8 @@ int main (void) TEST_VEXT(, poly, p, 64, 1, 0); TEST_VEXT(q, poly, p, 64, 2, 1); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vext_expected, ""); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vext_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vext_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vext_expected, ""); /* vget_low_p64 tests. */ #undef TEST_MSG @@ -387,7 +387,7 @@ int main (void) TEST_VGET_LOW(poly, p, 64, 1, 2); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vget_low_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vget_low_expected, ""); /* vget_high_p64 tests. */ #undef TEST_MSG @@ -407,7 +407,7 @@ int main (void) TEST_VGET_HIGH(poly, p, 64, 1, 2); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vget_high_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vget_high_expected, ""); /* vld1_p64 tests. */ #undef TEST_MSG @@ -429,8 +429,8 @@ int main (void) TEST_VLD1(vld1_vector, buffer, , poly, p, 64, 1); TEST_VLD1(vld1_vector, buffer, q, poly, p, 64, 2); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld1_expected, ""); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vld1_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld1_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vld1_expected, ""); /* vld1_dup_p64 tests. */ #undef TEST_MSG @@ -454,16 +454,16 @@ int main (void) switch (i) { case 0: - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld1_dup_expected0, ""); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vld1_dup_expected0, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld1_dup_expected0, ""); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vld1_dup_expected0, ""); break; case 1: - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld1_dup_expected1, ""); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vld1_dup_expected1, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld1_dup_expected1, ""); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vld1_dup_expected1, ""); break; case 2: - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld1_dup_expected2, ""); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vld1_dup_expected2, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld1_dup_expected2, ""); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vld1_dup_expected2, ""); break; default: abort(); @@ -497,8 +497,8 @@ int main (void) TEST_VLD1_LANE(, poly, p, 64, 1, 0); TEST_VLD1_LANE(q, poly, p, 64, 2, 0); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld1_lane_expected, ""); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vld1_lane_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld1_lane_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vld1_lane_expected, ""); /* vldX_p64 tests. */ #define DECL_VLDX(T1, W, N, X) \ @@ -535,37 +535,37 @@ int main (void) #define TEST_MSG "VLD2/VLD2Q" CLEAN(result, poly, 64, 1); TEST_VLDX(, poly, p, 64, 1, 2); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld2_expected_0, "chunk 0"); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld2_expected_0, "chunk 0"); CLEAN(result, poly, 64, 1); TEST_EXTRA_CHUNK(poly, 64, 1, 2, 1); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld2_expected_1, "chunk 1"); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld2_expected_1, "chunk 1"); #undef TEST_MSG #define TEST_MSG "VLD3/VLD3Q" CLEAN(result, poly, 64, 1); TEST_VLDX(, poly, p, 64, 1, 3); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld3_expected_0, "chunk 0"); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld3_expected_0, "chunk 0"); CLEAN(result, poly, 64, 1); TEST_EXTRA_CHUNK(poly, 64, 1, 3, 1); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld3_expected_1, "chunk 1"); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld3_expected_1, "chunk 1"); CLEAN(result, poly, 64, 1); TEST_EXTRA_CHUNK(poly, 64, 1, 3, 2); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld3_expected_2, "chunk 2"); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld3_expected_2, "chunk 2"); #undef TEST_MSG #define TEST_MSG "VLD4/VLD4Q" CLEAN(result, poly, 64, 1); TEST_VLDX(, poly, p, 64, 1, 4); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld4_expected_0, "chunk 0"); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld4_expected_0, "chunk 0"); CLEAN(result, poly, 64, 1); TEST_EXTRA_CHUNK(poly, 64, 1, 4, 1); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld4_expected_1, "chunk 1"); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld4_expected_1, "chunk 1"); CLEAN(result, poly, 64, 1); TEST_EXTRA_CHUNK(poly, 64, 1, 4, 2); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld4_expected_2, "chunk 2"); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld4_expected_2, "chunk 2"); CLEAN(result, poly, 64, 1); TEST_EXTRA_CHUNK(poly, 64, 1, 4, 3); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld4_expected_3, "chunk 3"); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld4_expected_3, "chunk 3"); /* vldX_dup_p64 tests. */ #define DECL_VLDX_DUP(T1, W, N, X) \ @@ -596,37 +596,37 @@ int main (void) #define TEST_MSG "VLD2_DUP/VLD2Q_DUP" CLEAN(result, poly, 64, 1); TEST_VLDX_DUP(, poly, p, 64, 1, 2); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld2_dup_expected_0, "chunk 0"); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld2_dup_expected_0, "chunk 0"); CLEAN(result, poly, 64, 1); TEST_VLDX_DUP_EXTRA_CHUNK(poly, 64, 1, 2, 1); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld2_dup_expected_1, "chunk 1"); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld2_dup_expected_1, "chunk 1"); #undef TEST_MSG #define TEST_MSG "VLD3_DUP/VLD3Q_DUP" CLEAN(result, poly, 64, 1); TEST_VLDX_DUP(, poly, p, 64, 1, 3); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld3_dup_expected_0, "chunk 0"); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld3_dup_expected_0, "chunk 0"); CLEAN(result, poly, 64, 1); TEST_VLDX_DUP_EXTRA_CHUNK(poly, 64, 1, 3, 1); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld3_dup_expected_1, "chunk 1"); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld3_dup_expected_1, "chunk 1"); CLEAN(result, poly, 64, 1); TEST_VLDX_DUP_EXTRA_CHUNK(poly, 64, 1, 3, 2); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld3_dup_expected_2, "chunk 2"); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld3_dup_expected_2, "chunk 2"); #undef TEST_MSG #define TEST_MSG "VLD4_DUP/VLD4Q_DUP" CLEAN(result, poly, 64, 1); TEST_VLDX_DUP(, poly, p, 64, 1, 4); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld4_dup_expected_0, "chunk 0"); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld4_dup_expected_0, "chunk 0"); CLEAN(result, poly, 64, 1); TEST_VLDX_DUP_EXTRA_CHUNK(poly, 64, 1, 4, 1); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld4_dup_expected_1, "chunk 1"); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld4_dup_expected_1, "chunk 1"); CLEAN(result, poly, 64, 1); TEST_VLDX_DUP_EXTRA_CHUNK(poly, 64, 1, 4, 2); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld4_dup_expected_2, "chunk 2"); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld4_dup_expected_2, "chunk 2"); CLEAN(result, poly, 64, 1); TEST_VLDX_DUP_EXTRA_CHUNK(poly, 64, 1, 4, 3); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vld4_dup_expected_3, "chunk 3"); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vld4_dup_expected_3, "chunk 3"); /* vsli_p64 tests. */ #undef TEST_MSG @@ -661,8 +661,8 @@ int main (void) TEST_VSXI(vsli, , poly, p, 64, 1, 3); TEST_VSXI(vsli, q, poly, p, 64, 2, 53); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vsli_expected, ""); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vsli_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vsli_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vsli_expected, ""); /* Test cases with maximum shift amount. */ CLEAN(result, poly, 64, 1); @@ -672,8 +672,8 @@ int main (void) TEST_VSXI(vsli, q, poly, p, 64, 2, 63); #define COMMENT "(max shift amount)" - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vsli_expected_max_shift, COMMENT); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vsli_expected_max_shift, COMMENT); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vsli_expected_max_shift, COMMENT); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vsli_expected_max_shift, COMMENT); /* vsri_p64 tests. */ #undef TEST_MSG @@ -691,8 +691,8 @@ int main (void) TEST_VSXI(vsri, , poly, p, 64, 1, 3); TEST_VSXI(vsri, q, poly, p, 64, 2, 53); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vsri_expected, ""); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vsri_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vsri_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vsri_expected, ""); /* Test cases with maximum shift amount. */ CLEAN(result, poly, 64, 1); @@ -702,8 +702,8 @@ int main (void) TEST_VSXI(vsri, q, poly, p, 64, 2, 64); #define COMMENT "(max shift amount)" - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vsri_expected_max_shift, COMMENT); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vsri_expected_max_shift, COMMENT); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vsri_expected_max_shift, COMMENT); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vsri_expected_max_shift, COMMENT); /* vst1_lane_p64 tests. */ #undef TEST_MSG @@ -724,8 +724,8 @@ int main (void) TEST_VST1_LANE(, poly, p, 64, 1, 0); TEST_VST1_LANE(q, poly, p, 64, 2, 0); - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vst1_lane_expected, ""); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vst1_lane_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vst1_lane_expected, ""); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vst1_lane_expected, ""); #ifdef __aarch64__ @@ -751,16 +751,16 @@ int main (void) switch (i) { case 0: - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vmov_n_expected0, ""); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vmov_n_expected0, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vmov_n_expected0, ""); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vmov_n_expected0, ""); break; case 1: - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vmov_n_expected1, ""); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vmov_n_expected1, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vmov_n_expected1, ""); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vmov_n_expected1, ""); break; case 2: - CHECK(TEST_MSG, poly, 64, 1, PRIx64, vmov_n_expected2, ""); - CHECK(TEST_MSG, poly, 64, 2, PRIx64, vmov_n_expected2, ""); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, vmov_n_expected2, ""); + CHECK_POLY(TEST_MSG, poly, 64, 2, PRIx64, vmov_n_expected2, ""); break; default: abort(); @@ -780,8 +780,8 @@ int main (void) TEST_MSG, __FILE__, __LINE__, \ STR(VECT_VAR(vget_lane_expected, T1, W, N)), \ STR(VECT_NAME(T1, W, N)), \ - VECT_VAR(vget_lane_vector, T1, W, N), \ - VECT_VAR(vget_lane_expected, T1, W, N)); \ + (uint##W##_t)VECT_VAR(vget_lane_vector, T1, W, N), \ + (uint##W##_t)VECT_VAR(vget_lane_expected, T1, W, N)); \ abort (); \ } @@ -864,9 +864,9 @@ VECT_VAR_DECL_INIT(buffer_vld4_lane, poly, 64, 4); TEST_EXTRA_CHUNK(poly, 64, 1, X, Y) \ TEST_EXTRA_CHUNK(poly, 64, 2, X, Y) -#define CHECK_RESULTS_VLD_STX_LANE(test_name,EXPECTED,comment) \ - CHECK(test_name, poly, 64, 1, PRIx64, EXPECTED, comment); \ - CHECK(test_name, poly, 64, 2, PRIx64, EXPECTED, comment); +#define CHECK_RESULTS_VLD_STX_LANE(test_name,EXPECTED,comment) \ + CHECK_POLY(test_name, poly, 64, 1, PRIx64, EXPECTED, comment); \ + CHECK_POLY(test_name, poly, 64, 2, PRIx64, EXPECTED, comment); /* Declare the temporary buffers / variables. */ DECL_ALL_VLD_STX_LANE(2); @@ -908,8 +908,8 @@ VECT_VAR_DECL_INIT(buffer_vld4_lane, poly, 64, 4); TEST_ALL_EXTRA_CHUNKS(4, 1); CHECK_RESULTS_VLD_STX_LANE (TEST_MSG, expected_vld_st4_1, " chunk 1"); - TEST_ALL_EXTRA_CHUNKS(4, 2); + TEST_ALL_EXTRA_CHUNKS(4, 2); CHECK_RESULTS_VLD_STX_LANE (TEST_MSG, expected_vld_st4_2, " chunk 2"); TEST_ALL_EXTRA_CHUNKS(4, 3); @@ -961,12 +961,12 @@ VECT_VAR_DECL_INIT(buffer_vld4_lane, poly, 64, 4); TEST_ALL_VSTX_LANE(2); #define CMT " (chunk 0)" - CHECK(TEST_MSG, poly, 64, 1, PRIx64, expected_vld_st2_0, CMT); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, expected_vld_st2_0, CMT); TEST_ALL_EXTRA_CHUNKS(2, 1); #undef CMT #define CMT " chunk 1" - CHECK(TEST_MSG, poly, 64, 1, PRIx64, expected_vld_st2_1, CMT); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, expected_vld_st2_1, CMT); /* Check vst3_lane/vst3q_lane. */ clean_results (); @@ -976,19 +976,19 @@ VECT_VAR_DECL_INIT(buffer_vld4_lane, poly, 64, 4); #undef CMT #define CMT " (chunk 0)" - CHECK(TEST_MSG, poly, 64, 1, PRIx64, expected_vld_st3_0, CMT); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, expected_vld_st3_0, CMT); TEST_ALL_EXTRA_CHUNKS(3, 1); #undef CMT #define CMT " (chunk 1)" - CHECK(TEST_MSG, poly, 64, 1, PRIx64, expected_vld_st3_1, CMT); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, expected_vld_st3_1, CMT); TEST_ALL_EXTRA_CHUNKS(3, 2); #undef CMT #define CMT " (chunk 2)" - CHECK(TEST_MSG, poly, 64, 1, PRIx64, expected_vld_st3_2, CMT); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, expected_vld_st3_2, CMT); /* Check vst4_lane/vst4q_lane. */ clean_results (); @@ -998,25 +998,25 @@ VECT_VAR_DECL_INIT(buffer_vld4_lane, poly, 64, 4); #undef CMT #define CMT " (chunk 0)" - CHECK(TEST_MSG, poly, 64, 1, PRIx64, expected_vld_st4_0, CMT); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, expected_vld_st4_0, CMT); TEST_ALL_EXTRA_CHUNKS(4, 1); #undef CMT #define CMT " (chunk 1)" - CHECK(TEST_MSG, poly, 64, 1, PRIx64, expected_vld_st4_1, CMT); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, expected_vld_st4_1, CMT); TEST_ALL_EXTRA_CHUNKS(4, 2); #undef CMT #define CMT " (chunk 2)" - CHECK(TEST_MSG, poly, 64, 1, PRIx64, expected_vld_st4_2, CMT); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, expected_vld_st4_2, CMT); TEST_ALL_EXTRA_CHUNKS(4, 3); #undef CMT #define CMT " (chunk 3)" - CHECK(TEST_MSG, poly, 64, 1, PRIx64, expected_vld_st4_3, CMT); + CHECK_POLY(TEST_MSG, poly, 64, 1, PRIx64, expected_vld_st4_3, CMT); #endif /* __aarch64__. */ diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/unary_sat_op.inc b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/unary_sat_op.inc index 0da1426..30df2dd 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/unary_sat_op.inc +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/unary_sat_op.inc @@ -61,11 +61,11 @@ void FNNAME (INSN_NAME) (void) TEST_UNARY_SAT_OP(INSN_NAME, q, int, s, 32, 4, expected_cumulative_sat, ""); CHECK(TEST_MSG, int, 8, 8, PRIx8, expected, ""); - CHECK(TEST_MSG, int, 16, 4, PRIx8, expected, ""); - CHECK(TEST_MSG, int, 32, 2, PRIx8, expected, ""); + CHECK(TEST_MSG, int, 16, 4, PRIx16, expected, ""); + CHECK(TEST_MSG, int, 32, 2, PRIx32, expected, ""); CHECK(TEST_MSG, int, 8, 16, PRIx8, expected, ""); - CHECK(TEST_MSG, int, 16, 8, PRIx8, expected, ""); - CHECK(TEST_MSG, int, 32, 4, PRIx8, expected, ""); + CHECK(TEST_MSG, int, 16, 8, PRIx16, expected, ""); + CHECK(TEST_MSG, int, 32, 4, PRIx32, expected, ""); #ifdef EXTRA_TESTS EXTRA_TESTS(); diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vcnt.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vcnt.c index ddc0865..b2a8988 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vcnt.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vcnt.c @@ -65,10 +65,10 @@ FNNAME (INSN_NAME) CHECK(TEST_MSG, int, 8, 8, PRIx8, expected, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected, ""); CHECK(TEST_MSG, int, 8, 16, PRIx8, expected, ""); CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected, ""); - CHECK(TEST_MSG, poly, 8, 16, PRIx8, expected, ""); + CHECK_POLY(TEST_MSG, poly, 8, 16, PRIx8, expected, ""); } int main (void) diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vcombine.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vcombine.c index 5100375..e9d31d6 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vcombine.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vcombine.c @@ -93,8 +93,8 @@ void exec_vcombine (void) CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected, ""); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected, ""); CHECK(TEST_MSG, uint, 64, 2, PRIx64, expected, ""); - CHECK(TEST_MSG, poly, 8, 16, PRIx8, expected, ""); - CHECK(TEST_MSG, poly, 16, 8, PRIx16, expected, ""); + CHECK_POLY(TEST_MSG, poly, 8, 16, PRIx8, expected, ""); + CHECK_POLY(TEST_MSG, poly, 16, 8, PRIx16, expected, ""); #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) CHECK_FP(TEST_MSG, float, 16, 8, PRIx16, expected, ""); #endif diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vcreate.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vcreate.c index b8b338e..c0b9c7a 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vcreate.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vcreate.c @@ -106,8 +106,8 @@ FNNAME (INSN_NAME) CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected, ""); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected, ""); CHECK(TEST_MSG, uint, 64, 1, PRIx64, expected, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected, ""); - CHECK(TEST_MSG, poly, 16, 4, PRIx16, expected, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected, ""); + CHECK_POLY(TEST_MSG, poly, 16, 4, PRIx16, expected, ""); #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) CHECK_FP(TEST_MSG, float, 16, 4, PRIx16, expected, ""); #endif diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vfms_vfma_n.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vfms_vfma_n.c index efa9b5f..b2d89bf 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vfms_vfma_n.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vfms_vfma_n.c @@ -345,13 +345,13 @@ void exec_vfma_vfms_n (void) VECT_VAR (vsrc_2, float, 64, 2), delem0); vst1q_f64 (VECT_VAR (result, float, 64, 2), VECT_VAR (vector_res, float, 64, 2)); - CHECK_FP (TEST_MSG, float, 64, 2, PRIx16, expectedfms0_static, ""); + CHECK_FP (TEST_MSG, float, 64, 2, PRIx64, expectedfms0_static, ""); VECT_VAR (vector_res, float, 64, 2) = vfmaq_n_f64 (VECT_VAR (vsrc_1, float, 64, 2), VECT_VAR (vsrc_2, float, 64, 2), delem0); vst1q_f64 (VECT_VAR (result, float, 64, 2), VECT_VAR (vector_res, float, 64, 2)); - CHECK_FP (TEST_MSG, float, 64, 2, PRIx16, expectedfma0_static, ""); + CHECK_FP (TEST_MSG, float, 64, 2, PRIx64, expectedfma0_static, ""); VECT_VAR_DECL (buf_src_3, float, 64, 2) [] = {DA2, DA3}; VECT_VAR_DECL (buf_src_4, float, 64, 2) [] = {DB2, DB3}; @@ -362,13 +362,13 @@ void exec_vfma_vfms_n (void) VECT_VAR (vsrc_2, float, 64, 2), delem1); vst1q_f64 (VECT_VAR (result, float, 64, 2), VECT_VAR (vector_res, float, 64, 2)); - CHECK_FP (TEST_MSG, float, 64, 2, PRIx16, expectedfms1_static, ""); + CHECK_FP (TEST_MSG, float, 64, 2, PRIx64, expectedfms1_static, ""); VECT_VAR (vector_res, float, 64, 2) = vfmaq_n_f64 (VECT_VAR (vsrc_1, float, 64, 2), VECT_VAR (vsrc_2, float, 64, 2), delem1); vst1q_f64 (VECT_VAR (result, float, 64, 2), VECT_VAR (vector_res, float, 64, 2)); - CHECK_FP (TEST_MSG, float, 64, 2, PRIx16, expectedfma1_static, ""); + CHECK_FP (TEST_MSG, float, 64, 2, PRIx64, expectedfma1_static, ""); VECT_VAR_DECL (buf_src_5, float, 64, 2) [] = {DA4, DA5}; VECT_VAR_DECL (buf_src_6, float, 64, 2) [] = {DB4, DB5}; @@ -379,13 +379,13 @@ void exec_vfma_vfms_n (void) VECT_VAR (vsrc_2, float, 64, 2), delem2); vst1q_f64 (VECT_VAR (result, float, 64, 2), VECT_VAR (vector_res, float, 64, 2)); - CHECK_FP (TEST_MSG, float, 64, 2, PRIx16, expectedfms2_static, ""); + CHECK_FP (TEST_MSG, float, 64, 2, PRIx64, expectedfms2_static, ""); VECT_VAR (vector_res, float, 64, 2) = vfmaq_n_f64 (VECT_VAR (vsrc_1, float, 64, 2), VECT_VAR (vsrc_2, float, 64, 2), delem2); vst1q_f64 (VECT_VAR (result, float, 64, 2), VECT_VAR (vector_res, float, 64, 2)); - CHECK_FP (TEST_MSG, float, 64, 2, PRIx16, expectedfma2_static, ""); + CHECK_FP (TEST_MSG, float, 64, 2, PRIx64, expectedfma2_static, ""); VECT_VAR_DECL (buf_src_7, float, 64, 2) [] = {DA6, DA7}; VECT_VAR_DECL (buf_src_8, float, 64, 2) [] = {DB6, DB7}; @@ -396,13 +396,13 @@ void exec_vfma_vfms_n (void) VECT_VAR (vsrc_2, float, 64, 2), delem3); vst1q_f64 (VECT_VAR (result, float, 64, 2), VECT_VAR (vector_res, float, 64, 2)); - CHECK_FP (TEST_MSG, float, 64, 2, PRIx16, expectedfms3_static, ""); + CHECK_FP (TEST_MSG, float, 64, 2, PRIx64, expectedfms3_static, ""); VECT_VAR (vector_res, float, 64, 2) = vfmaq_n_f64 (VECT_VAR (vsrc_1, float, 64, 2), VECT_VAR (vsrc_2, float, 64, 2), delem3); vst1q_f64 (VECT_VAR (result, float, 64, 2), VECT_VAR (vector_res, float, 64, 2)); - CHECK_FP (TEST_MSG, float, 64, 2, PRIx16, expectedfma3_static, ""); + CHECK_FP (TEST_MSG, float, 64, 2, PRIx64, expectedfma3_static, ""); #undef TEST_MSG #define TEST_MSG "VFMS_VFMA_N (FP64)" @@ -419,13 +419,13 @@ void exec_vfma_vfms_n (void) VECT_VAR (vsrc_2, float, 64, 1), delem0); vst1_f64 (VECT_VAR (result, float, 64, 1), VECT_VAR (vector_res, float, 64, 1)); - CHECK_FP (TEST_MSG, float, 64, 1, PRIx16, expectedfms0_static, ""); + CHECK_FP (TEST_MSG, float, 64, 1, PRIx64, expectedfms0_static, ""); VECT_VAR (vector_res, float, 64, 1) = vfma_n_f64 (VECT_VAR (vsrc_1, float, 64, 1), VECT_VAR (vsrc_2, float, 64, 1), delem0); vst1_f64 (VECT_VAR (result, float, 64, 1), VECT_VAR (vector_res, float, 64, 1)); - CHECK_FP (TEST_MSG, float, 64, 1, PRIx16, expectedfma0_static, ""); + CHECK_FP (TEST_MSG, float, 64, 1, PRIx64, expectedfma0_static, ""); VECT_VAR_DECL (buf_src_3, float, 64, 1) [] = {DA2}; VECT_VAR_DECL (buf_src_4, float, 64, 1) [] = {DB2}; @@ -436,13 +436,13 @@ void exec_vfma_vfms_n (void) VECT_VAR (vsrc_2, float, 64, 1), delem1); vst1_f64 (VECT_VAR (result, float, 64, 1), VECT_VAR (vector_res, float, 64, 1)); - CHECK_FP (TEST_MSG, float, 64, 1, PRIx16, expectedfms1_static, ""); + CHECK_FP (TEST_MSG, float, 64, 1, PRIx64, expectedfms1_static, ""); VECT_VAR (vector_res, float, 64, 1) = vfma_n_f64 (VECT_VAR (vsrc_1, float, 64, 1), VECT_VAR (vsrc_2, float, 64, 1), delem1); vst1_f64 (VECT_VAR (result, float, 64, 1), VECT_VAR (vector_res, float, 64, 1)); - CHECK_FP (TEST_MSG, float, 64, 1, PRIx16, expectedfma1_static, ""); + CHECK_FP (TEST_MSG, float, 64, 1, PRIx64, expectedfma1_static, ""); VECT_VAR_DECL (buf_src_5, float, 64, 1) [] = {DA4}; VECT_VAR_DECL (buf_src_6, float, 64, 1) [] = {DB4}; @@ -453,13 +453,13 @@ void exec_vfma_vfms_n (void) VECT_VAR (vsrc_2, float, 64, 1), delem2); vst1_f64 (VECT_VAR (result, float, 64, 1), VECT_VAR (vector_res, float, 64, 1)); - CHECK_FP (TEST_MSG, float, 64, 1, PRIx16, expectedfms2_static, ""); + CHECK_FP (TEST_MSG, float, 64, 1, PRIx64, expectedfms2_static, ""); VECT_VAR (vector_res, float, 64, 1) = vfma_n_f64 (VECT_VAR (vsrc_1, float, 64, 1), VECT_VAR (vsrc_2, float, 64, 1), delem2); vst1_f64 (VECT_VAR (result, float, 64, 1), VECT_VAR (vector_res, float, 64, 1)); - CHECK_FP (TEST_MSG, float, 64, 1, PRIx16, expectedfma2_static, ""); + CHECK_FP (TEST_MSG, float, 64, 1, PRIx64, expectedfma2_static, ""); VECT_VAR_DECL (buf_src_7, float, 64, 1) [] = {DA6}; VECT_VAR_DECL (buf_src_8, float, 64, 1) [] = {DB6}; @@ -470,13 +470,13 @@ void exec_vfma_vfms_n (void) VECT_VAR (vsrc_2, float, 64, 1), delem3); vst1_f64 (VECT_VAR (result, float, 64, 1), VECT_VAR (vector_res, float, 64, 1)); - CHECK_FP (TEST_MSG, float, 64, 1, PRIx16, expectedfms3_static, ""); + CHECK_FP (TEST_MSG, float, 64, 1, PRIx64, expectedfms3_static, ""); VECT_VAR (vector_res, float, 64, 1) = vfma_n_f64 (VECT_VAR (vsrc_1, float, 64, 1), VECT_VAR (vsrc_2, float, 64, 1), delem3); vst1_f64 (VECT_VAR (result, float, 64, 1), VECT_VAR (vector_res, float, 64, 1)); - CHECK_FP (TEST_MSG, float, 64, 1, PRIx16, expectedfma3_static, ""); + CHECK_FP (TEST_MSG, float, 64, 1, PRIx64, expectedfma3_static, ""); } #endif diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vget_high.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vget_high.c index 9f0a168..f3b14ce 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vget_high.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vget_high.c @@ -63,8 +63,8 @@ void exec_vget_high (void) CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected, ""); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected, ""); CHECK(TEST_MSG, uint, 64, 1, PRIx64, expected, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected, ""); - CHECK(TEST_MSG, poly, 16, 4, PRIx16, expected, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected, ""); + CHECK_POLY(TEST_MSG, poly, 16, 4, PRIx16, expected, ""); CHECK_FP(TEST_MSG, float, 32, 2, PRIx32, expected, ""); } diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vget_low.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vget_low.c index 2b875b9..e334e35 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vget_low.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vget_low.c @@ -63,8 +63,8 @@ void exec_vget_low (void) CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected, ""); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected, ""); CHECK(TEST_MSG, uint, 64, 1, PRIx64, expected, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected, ""); - CHECK(TEST_MSG, poly, 16, 4, PRIx16, expected, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected, ""); + CHECK_POLY(TEST_MSG, poly, 16, 4, PRIx16, expected, ""); #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) CHECK_FP(TEST_MSG, float, 16, 4, PRIx16, expected, ""); #endif diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX.c index e1e8562..8a5fc22 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX.c @@ -528,8 +528,8 @@ void exec_vldX (void) CHECK(test_name, uint, 16, 4, PRIx16, EXPECTED, comment); \ CHECK(test_name, uint, 32, 2, PRIx32, EXPECTED, comment); \ CHECK(test_name, uint, 64, 1, PRIx64, EXPECTED, comment); \ - CHECK(test_name, poly, 8, 8, PRIx8, EXPECTED, comment); \ - CHECK(test_name, poly, 16, 4, PRIx16, EXPECTED, comment); \ + CHECK_POLY(test_name, poly, 8, 8, PRIx8, EXPECTED, comment); \ + CHECK_POLY(test_name, poly, 16, 4, PRIx16, EXPECTED, comment); \ CHECK_FP(test_name, float, 32, 2, PRIx32, EXPECTED, comment); \ \ CHECK(test_name, int, 8, 16, PRIx8, EXPECTED, comment); \ @@ -538,8 +538,8 @@ void exec_vldX (void) CHECK(test_name, uint, 8, 16, PRIx8, EXPECTED, comment); \ CHECK(test_name, uint, 16, 8, PRIx16, EXPECTED, comment); \ CHECK(test_name, uint, 32, 4, PRIx32, EXPECTED, comment); \ - CHECK(test_name, poly, 8, 16, PRIx8, EXPECTED, comment); \ - CHECK(test_name, poly, 16, 8, PRIx16, EXPECTED, comment); \ + CHECK_POLY(test_name, poly, 8, 16, PRIx8, EXPECTED, comment); \ + CHECK_POLY(test_name, poly, 16, 8, PRIx16, EXPECTED, comment); \ CHECK_FP(test_name, float, 32, 4, PRIx32, EXPECTED, comment) #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX_dup.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX_dup.c index b44a987..903d306 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX_dup.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX_dup.c @@ -270,8 +270,8 @@ void exec_vldX_dup (void) CHECK(test_name, uint, 16, 4, PRIx16, EXPECTED, comment); \ CHECK(test_name, uint, 32, 2, PRIx32, EXPECTED, comment); \ CHECK(test_name, uint, 64, 1, PRIx64, EXPECTED, comment); \ - CHECK(test_name, poly, 8, 8, PRIx8, EXPECTED, comment); \ - CHECK(test_name, poly, 16, 4, PRIx16, EXPECTED, comment); \ + CHECK_POLY(test_name, poly, 8, 8, PRIx8, EXPECTED, comment); \ + CHECK_POLY(test_name, poly, 16, 4, PRIx16, EXPECTED, comment); \ CHECK_FP(test_name, float, 32, 2, PRIx32, EXPECTED, comment) #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX_lane.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX_lane.c index cda76ab..9651b70 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX_lane.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX_lane.c @@ -451,14 +451,14 @@ void exec_vldX_lane (void) CHECK(test_name, uint, 8, 8, PRIx8, EXPECTED, comment); \ CHECK(test_name, uint, 16, 4, PRIx16, EXPECTED, comment); \ CHECK(test_name, uint, 32, 2, PRIx32, EXPECTED, comment); \ - CHECK(test_name, poly, 8, 8, PRIx8, EXPECTED, comment); \ - CHECK(test_name, poly, 16, 4, PRIx16, EXPECTED, comment); \ + CHECK_POLY(test_name, poly, 8, 8, PRIx8, EXPECTED, comment); \ + CHECK_POLY(test_name, poly, 16, 4, PRIx16, EXPECTED, comment); \ CHECK_FP(test_name, float, 32, 2, PRIx32, EXPECTED, comment); \ CHECK(test_name, int, 16, 8, PRIx16, EXPECTED, comment); \ CHECK(test_name, int, 32, 4, PRIx32, EXPECTED, comment); \ CHECK(test_name, uint, 16, 8, PRIx16, EXPECTED, comment); \ CHECK(test_name, uint, 32, 4, PRIx32, EXPECTED, comment); \ - CHECK(test_name, poly, 16, 8, PRIx16, EXPECTED, comment); \ + CHECK_POLY(test_name, poly, 16, 8, PRIx16, EXPECTED, comment); \ CHECK_FP(test_name, float, 32, 4, PRIx32, EXPECTED, comment) #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmovn.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmovn.c index bc2c2ca..7a11d29 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmovn.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmovn.c @@ -35,11 +35,11 @@ void exec_vmovn (void) TEST_VMOVN(uint, u, 32, 16, 4); TEST_VMOVN(uint, u, 64, 32, 2); - CHECK(TEST_MSG, int, 8, 8, PRIx32, expected, ""); - CHECK(TEST_MSG, int, 16, 4, PRIx64, expected, ""); + CHECK(TEST_MSG, int, 8, 8, PRIx8, expected, ""); + CHECK(TEST_MSG, int, 16, 4, PRIx16, expected, ""); CHECK(TEST_MSG, int, 32, 2, PRIx32, expected, ""); - CHECK(TEST_MSG, uint, 8, 8, PRIx32, expected, ""); - CHECK(TEST_MSG, uint, 16, 4, PRIx64, expected, ""); + CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected, ""); + CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected, ""); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected, ""); } diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmul.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmul.c index c5fe31a..6a74e9a 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmul.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmul.c @@ -171,7 +171,7 @@ void FNNAME (INSN_NAME) (void) CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected, ""); CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected, ""); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected, ""); CHECK_FP(TEST_MSG, float, 32, 2, PRIx32, expected, ""); CHECK(TEST_MSG, int, 8, 16, PRIx8, expected, ""); CHECK(TEST_MSG, int, 16, 8, PRIx16, expected, ""); @@ -179,7 +179,7 @@ void FNNAME (INSN_NAME) (void) CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected, ""); CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected, ""); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected, ""); - CHECK(TEST_MSG, poly, 8, 16, PRIx8, expected, ""); + CHECK_POLY(TEST_MSG, poly, 8, 16, PRIx8, expected, ""); CHECK_FP(TEST_MSG, float, 32, 4, PRIx32, expected, ""); #if defined (__ARM_FEATURE_FP16_VECTOR_ARITHMETIC) CHECK_FP(TEST_MSG, float, 16, 4, PRIx16, expected, ""); diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmul_lane.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmul_lane.c index e6cf4d7..a2c9226 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmul_lane.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmul_lane.c @@ -116,17 +116,17 @@ void exec_vmul_lane (void) #endif TEST_VMUL_LANE(q, float, f, 32, 4, 2, 0); - CHECK(TEST_MSG, int, 16, 4, PRIx64, expected, ""); + CHECK(TEST_MSG, int, 16, 4, PRIx16, expected, ""); CHECK(TEST_MSG, int, 32, 2, PRIx32, expected, ""); - CHECK(TEST_MSG, uint, 16, 4, PRIx64, expected, ""); + CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected, ""); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected, ""); #if defined (__ARM_FEATURE_FP16_VECTOR_ARITHMETIC) CHECK_FP(TEST_MSG, float, 16, 4, PRIx16, expected, ""); #endif CHECK_FP(TEST_MSG, float, 32, 2, PRIx32, expected, ""); - CHECK(TEST_MSG, int, 16, 8, PRIx64, expected, ""); + CHECK(TEST_MSG, int, 16, 8, PRIx16, expected, ""); CHECK(TEST_MSG, int, 32, 4, PRIx32, expected, ""); - CHECK(TEST_MSG, uint, 16, 8, PRIx64, expected, ""); + CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected, ""); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected, ""); #if defined (__ARM_FEATURE_FP16_VECTOR_ARITHMETIC) CHECK_FP(TEST_MSG, float, 16, 8, PRIx16, expected, ""); diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmul_n.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmul_n.c index 16f7dac..c66b9f5 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmul_n.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmul_n.c @@ -102,17 +102,17 @@ void FNNAME (INSN_NAME) (void) #endif TEST_VMUL_N(q, float, f, 32, 4, 88.9f); - CHECK(TEST_MSG, int, 16, 4, PRIx64, expected, ""); + CHECK(TEST_MSG, int, 16, 4, PRIx16, expected, ""); CHECK(TEST_MSG, int, 32, 2, PRIx32, expected, ""); - CHECK(TEST_MSG, uint, 16, 4, PRIx64, expected, ""); + CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected, ""); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected, ""); #if defined (__ARM_FEATURE_FP16_VECTOR_ARITHMETIC) CHECK_FP(TEST_MSG, float, 16, 4, PRIx16, expected, ""); #endif CHECK_FP(TEST_MSG, float, 32, 2, PRIx32, expected, ""); - CHECK(TEST_MSG, int, 16, 8, PRIx64, expected, ""); + CHECK(TEST_MSG, int, 16, 8, PRIx16, expected, ""); CHECK(TEST_MSG, int, 32, 4, PRIx32, expected, ""); - CHECK(TEST_MSG, uint, 16, 8, PRIx64, expected, ""); + CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected, ""); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected, ""); #if defined (__ARM_FEATURE_FP16_VECTOR_ARITHMETIC) CHECK_FP(TEST_MSG, float, 16, 8, PRIx16, expected, ""); diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmull.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmull.c index 3fdd51e..cb14b63 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmull.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmull.c @@ -59,13 +59,13 @@ void exec_vmull (void) TEST_VMULL(uint, u, 32, 64, 2); TEST_VMULL(poly, p, 8, 16, 8); - CHECK(TEST_MSG, int, 16, 8, PRIx64, expected, ""); + CHECK(TEST_MSG, int, 16, 8, PRIx16, expected, ""); CHECK(TEST_MSG, int, 32, 4, PRIx32, expected, ""); - CHECK(TEST_MSG, int, 64, 2, PRIx32, expected, ""); - CHECK(TEST_MSG, uint, 16, 8, PRIx64, expected, ""); + CHECK(TEST_MSG, int, 64, 2, PRIx64, expected, ""); + CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected, ""); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected, ""); - CHECK(TEST_MSG, uint, 64, 2, PRIx32, expected, ""); - CHECK(TEST_MSG, poly, 16, 8, PRIx16, expected, ""); + CHECK(TEST_MSG, uint, 64, 2, PRIx64, expected, ""); + CHECK_POLY(TEST_MSG, poly, 16, 8, PRIx16, expected, ""); } int main (void) diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmull_lane.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmull_lane.c index d3aa879..c70c878 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmull_lane.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmull_lane.c @@ -54,9 +54,9 @@ void exec_vmull_lane (void) TEST_VMULL_LANE(uint, u, 32, 64, 2, 1); CHECK(TEST_MSG, int, 32, 4, PRIx32, expected, ""); - CHECK(TEST_MSG, int, 64, 2, PRIx32, expected, ""); + CHECK(TEST_MSG, int, 64, 2, PRIx64, expected, ""); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected, ""); - CHECK(TEST_MSG, uint, 64, 2, PRIx32, expected, ""); + CHECK(TEST_MSG, uint, 64, 2, PRIx64, expected, ""); } int main (void) diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmvn.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmvn.c index 268a707..4333f4f 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmvn.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmvn.c @@ -120,14 +120,14 @@ FNNAME (INSN_NAME) CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected, ""); CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected, ""); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected, ""); CHECK(TEST_MSG, int, 8, 16, PRIx8, expected, ""); CHECK(TEST_MSG, int, 16, 8, PRIx16, expected, ""); CHECK(TEST_MSG, int, 32, 4, PRIx32, expected, ""); CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected, ""); CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected, ""); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected, ""); - CHECK(TEST_MSG, poly, 8, 16, PRIx8, expected, ""); + CHECK_POLY(TEST_MSG, poly, 8, 16, PRIx8, expected, ""); } int main (void) diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vpXXX.inc b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vpXXX.inc index a9b0c62..eb6dd42 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vpXXX.inc +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vpXXX.inc @@ -63,11 +63,11 @@ void FNNAME (INSN_NAME) (void) #endif TEST_VPXXX(INSN_NAME, float, f, 32, 2); - CHECK(TEST_MSG, int, 8, 8, PRIx32, expected, ""); - CHECK(TEST_MSG, int, 16, 4, PRIx64, expected, ""); + CHECK(TEST_MSG, int, 8, 8, PRIx8, expected, ""); + CHECK(TEST_MSG, int, 16, 4, PRIx16, expected, ""); CHECK(TEST_MSG, int, 32, 2, PRIx32, expected, ""); - CHECK(TEST_MSG, uint, 8, 8, PRIx32, expected, ""); - CHECK(TEST_MSG, uint, 16, 4, PRIx64, expected, ""); + CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected, ""); + CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected, ""); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected, ""); #if defined (__ARM_FEATURE_FP16_VECTOR_ARITHMETIC) CHECK_FP(TEST_MSG, float, 16, 4, PRIx16, expected, ""); diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqabs.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqabs.c index 4a7ab17..03d25c4 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqabs.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqabs.c @@ -90,9 +90,9 @@ void vqabs_extra() TEST_UNARY_SAT_OP(INSN_NAME, q, int, s, 32, 4, expected_cumulative_sat_min_neg, MSG); CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_min_neg, MSG); - CHECK(TEST_MSG, int, 16, 4, PRIx8, expected_min_neg, MSG); - CHECK(TEST_MSG, int, 32, 2, PRIx8, expected_min_neg, MSG); + CHECK(TEST_MSG, int, 16, 4, PRIx16, expected_min_neg, MSG); + CHECK(TEST_MSG, int, 32, 2, PRIx32, expected_min_neg, MSG); CHECK(TEST_MSG, int, 8, 16, PRIx8, expected_min_neg, MSG); - CHECK(TEST_MSG, int, 16, 8, PRIx8, expected_min_neg, MSG); - CHECK(TEST_MSG, int, 32, 4, PRIx8, expected_min_neg, MSG); + CHECK(TEST_MSG, int, 16, 8, PRIx16, expected_min_neg, MSG); + CHECK(TEST_MSG, int, 32, 4, PRIx32, expected_min_neg, MSG); } diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqdmull.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqdmull.c index e71a624..5caebce 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqdmull.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqdmull.c @@ -63,8 +63,8 @@ void FNNAME (INSN_NAME) (void) TEST_VQDMULL(int, s, 16, 32, 4, expected_cumulative_sat, ""); TEST_VQDMULL(int, s, 32, 64, 2, expected_cumulative_sat, ""); - CHECK (TEST_MSG, int, 32, 4, PRIx16, expected, ""); - CHECK (TEST_MSG, int, 64, 2, PRIx32, expected, ""); + CHECK (TEST_MSG, int, 32, 4, PRIx32, expected, ""); + CHECK (TEST_MSG, int, 64, 2, PRIx64, expected, ""); VDUP(vector, , int, s, 16, 4, 0x8000); VDUP(vector2, , int, s, 16, 4, 0x8000); @@ -75,8 +75,8 @@ void FNNAME (INSN_NAME) (void) TEST_VQDMULL(int, s, 16, 32, 4, expected_cumulative_sat2, TEST_MSG2); TEST_VQDMULL(int, s, 32, 64, 2, expected_cumulative_sat2, TEST_MSG2); - CHECK (TEST_MSG, int, 32, 4, PRIx16, expected2, TEST_MSG2); - CHECK (TEST_MSG, int, 64, 2, PRIx32, expected2, TEST_MSG2); + CHECK (TEST_MSG, int, 32, 4, PRIx32, expected2, TEST_MSG2); + CHECK (TEST_MSG, int, 64, 2, PRIx64, expected2, TEST_MSG2); } int main (void) diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqneg.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqneg.c index 21a0926..5126ac9 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqneg.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqneg.c @@ -90,9 +90,9 @@ void vqneg_extra() TEST_UNARY_SAT_OP(INSN_NAME, q, int, s, 32, 4, expected_cumulative_sat_min_neg, MSG); CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_min_neg, MSG); - CHECK(TEST_MSG, int, 16, 4, PRIx8, expected_min_neg, MSG); - CHECK(TEST_MSG, int, 32, 2, PRIx8, expected_min_neg, MSG); + CHECK(TEST_MSG, int, 16, 4, PRIx16, expected_min_neg, MSG); + CHECK(TEST_MSG, int, 32, 2, PRIx32, expected_min_neg, MSG); CHECK(TEST_MSG, int, 8, 16, PRIx8, expected_min_neg, MSG); - CHECK(TEST_MSG, int, 16, 8, PRIx8, expected_min_neg, MSG); - CHECK(TEST_MSG, int, 32, 4, PRIx8, expected_min_neg, MSG); + CHECK(TEST_MSG, int, 16, 8, PRIx16, expected_min_neg, MSG); + CHECK(TEST_MSG, int, 32, 4, PRIx32, expected_min_neg, MSG); } diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqtbX.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqtbX.c index 129ceaf..2a32f3f 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqtbX.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqtbX.c @@ -318,13 +318,13 @@ void exec_vqtbX (void) CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_vqtbl1, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vqtbl1, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vqtbl1, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vqtbl1, ""); #undef TEST_MSG #define TEST_MSG "VQTBL1Q" CHECK(TEST_MSG, int, 8, 16, PRIx8, expected_vqtbl1q, ""); CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected_vqtbl1q, ""); - CHECK(TEST_MSG, poly, 8, 16, PRIx8, expected_vqtbl1q, ""); + CHECK_POLY(TEST_MSG, poly, 8, 16, PRIx8, expected_vqtbl1q, ""); /* Check vqtbl2. */ clean_results (); @@ -334,13 +334,13 @@ void exec_vqtbX (void) CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_vqtbl2, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vqtbl2, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vqtbl2, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vqtbl2, ""); #undef TEST_MSG #define TEST_MSG "VQTBL2Q" CHECK(TEST_MSG, int, 8, 16, PRIx8, expected_vqtbl2q, ""); CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected_vqtbl2q, ""); - CHECK(TEST_MSG, poly, 8, 16, PRIx8, expected_vqtbl2q, ""); + CHECK_POLY(TEST_MSG, poly, 8, 16, PRIx8, expected_vqtbl2q, ""); /* Check vqtbl3. */ clean_results (); @@ -350,13 +350,13 @@ void exec_vqtbX (void) CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_vqtbl3, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vqtbl3, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vqtbl3, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vqtbl3, ""); #undef TEST_MSG #define TEST_MSG "VQTBL3Q" CHECK(TEST_MSG, int, 8, 16, PRIx8, expected_vqtbl3q, ""); CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected_vqtbl3q, ""); - CHECK(TEST_MSG, poly, 8, 16, PRIx8, expected_vqtbl3q, ""); + CHECK_POLY(TEST_MSG, poly, 8, 16, PRIx8, expected_vqtbl3q, ""); /* Check vqtbl4. */ clean_results (); @@ -366,13 +366,13 @@ void exec_vqtbX (void) CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_vqtbl4, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vqtbl4, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vqtbl4, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vqtbl4, ""); #undef TEST_MSG #define TEST_MSG "VQTBL4Q" CHECK(TEST_MSG, int, 8, 16, PRIx8, expected_vqtbl4q, ""); CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected_vqtbl4q, ""); - CHECK(TEST_MSG, poly, 8, 16, PRIx8, expected_vqtbl4q, ""); + CHECK_POLY(TEST_MSG, poly, 8, 16, PRIx8, expected_vqtbl4q, ""); /* Now test VQTBX. */ @@ -455,13 +455,13 @@ void exec_vqtbX (void) CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_vqtbx1, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vqtbx1, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vqtbx1, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vqtbx1, ""); #undef TEST_MSG #define TEST_MSG "VQTBX1Q" CHECK(TEST_MSG, int, 8, 16, PRIx8, expected_vqtbx1q, ""); CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected_vqtbx1q, ""); - CHECK(TEST_MSG, poly, 8, 16, PRIx8, expected_vqtbx1q, ""); + CHECK_POLY(TEST_MSG, poly, 8, 16, PRIx8, expected_vqtbx1q, ""); /* Check vqtbx2. */ clean_results (); @@ -471,13 +471,13 @@ void exec_vqtbX (void) CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_vqtbx2, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vqtbx2, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vqtbx2, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vqtbx2, ""); #undef TEST_MSG #define TEST_MSG "VQTBX2Q" CHECK(TEST_MSG, int, 8, 16, PRIx8, expected_vqtbx2q, ""); CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected_vqtbx2q, ""); - CHECK(TEST_MSG, poly, 8, 16, PRIx8, expected_vqtbx2q, ""); + CHECK_POLY(TEST_MSG, poly, 8, 16, PRIx8, expected_vqtbx2q, ""); /* Check vqtbx3. */ clean_results (); @@ -487,13 +487,13 @@ void exec_vqtbX (void) CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_vqtbx3, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vqtbx3, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vqtbx3, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vqtbx3, ""); #undef TEST_MSG #define TEST_MSG "VQTBX3Q" CHECK(TEST_MSG, int, 8, 16, PRIx8, expected_vqtbx3q, ""); CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected_vqtbx3q, ""); - CHECK(TEST_MSG, poly, 8, 16, PRIx8, expected_vqtbx3q, ""); + CHECK_POLY(TEST_MSG, poly, 8, 16, PRIx8, expected_vqtbx3q, ""); /* Check vqtbx4. */ clean_results (); @@ -503,13 +503,13 @@ void exec_vqtbX (void) CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_vqtbx4, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vqtbx4, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vqtbx4, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vqtbx4, ""); #undef TEST_MSG #define TEST_MSG "VQTBX4Q" CHECK(TEST_MSG, int, 8, 16, PRIx8, expected_vqtbx4q, ""); CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected_vqtbx4q, ""); - CHECK(TEST_MSG, poly, 8, 16, PRIx8, expected_vqtbx4q, ""); + CHECK_POLY(TEST_MSG, poly, 8, 16, PRIx8, expected_vqtbx4q, ""); } int main (void) diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vreinterpret_p128.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vreinterpret_p128.c index f192d4d..25b3482 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vreinterpret_p128.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vreinterpret_p128.c @@ -104,7 +104,7 @@ int main (void) vreinterpret##Q##_##T2##W##_##TS2##WS(VECT_VAR(vreint_vector, TS1, WS, NS))); \ vst1##Q##_##T2##64(VECT_VAR(result, poly, 64, 2), \ VECT_VAR(vreint_vector_res, poly, 64, 2)); \ - CHECK(TEST_MSG, T1, 64, 2, PRIx##64, EXPECTED, ""); + CHECK_POLY(TEST_MSG, T1, 64, 2, PRIx##64, EXPECTED, ""); TEST_VREINTERPRET128(q, poly, p, 128, 1, int, s, 8, 16, vreint_expected_q_p128_s8); TEST_VREINTERPRET128(q, poly, p, 128, 1, int, s, 16, 8, vreint_expected_q_p128_s16); diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vreinterpret_p64.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vreinterpret_p64.c index c915fd2..6a46e79 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vreinterpret_p64.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vreinterpret_p64.c @@ -114,6 +114,13 @@ int main (void) VECT_VAR(vreint_vector_res, T1, W, N)); \ CHECK(TEST_MSG, T1, W, N, PRIx##W, EXPECTED, ""); +#define TEST_VREINTERPRET_TO_POLY(Q, T1, T2, W, N, TS1, TS2, WS, NS, EXPECTED) \ + VECT_VAR(vreint_vector_res, T1, W, N) = \ + vreinterpret##Q##_##T2##W##_##TS2##WS(VECT_VAR(vreint_vector, TS1, WS, NS)); \ + vst1##Q##_##T2##W(VECT_VAR(result, T1, W, N), \ + VECT_VAR(vreint_vector_res, T1, W, N)); \ + CHECK_POLY(TEST_MSG, T1, W, N, PRIx##W, EXPECTED, ""); + #define TEST_VREINTERPRET_FP(Q, T1, T2, W, N, TS1, TS2, WS, NS, EXPECTED) \ VECT_VAR(vreint_vector_res, T1, W, N) = \ vreinterpret##Q##_##T2##W##_##TS2##WS(VECT_VAR(vreint_vector, TS1, WS, NS)); \ @@ -139,38 +146,38 @@ int main (void) /* vreinterpret_p64_* tests. */ #undef TEST_MSG #define TEST_MSG "VREINTERPRET_P64_*" - TEST_VREINTERPRET(, poly, p, 64, 1, int, s, 8, 8, vreint_expected_p64_s8); - TEST_VREINTERPRET(, poly, p, 64, 1, int, s, 16, 4, vreint_expected_p64_s16); - TEST_VREINTERPRET(, poly, p, 64, 1, int, s, 32, 2, vreint_expected_p64_s32); - TEST_VREINTERPRET(, poly, p, 64, 1, int, s, 64, 1, vreint_expected_p64_s64); - TEST_VREINTERPRET(, poly, p, 64, 1, uint, u, 8, 8, vreint_expected_p64_u8); - TEST_VREINTERPRET(, poly, p, 64, 1, uint, u, 16, 4, vreint_expected_p64_u16); - TEST_VREINTERPRET(, poly, p, 64, 1, uint, u, 32, 2, vreint_expected_p64_u32); - TEST_VREINTERPRET(, poly, p, 64, 1, uint, u, 64, 1, vreint_expected_p64_u64); - TEST_VREINTERPRET(, poly, p, 64, 1, poly, p, 8, 8, vreint_expected_p64_p8); - TEST_VREINTERPRET(, poly, p, 64, 1, poly, p, 16, 4, vreint_expected_p64_p16); + TEST_VREINTERPRET_TO_POLY(, poly, p, 64, 1, int, s, 8, 8, vreint_expected_p64_s8); + TEST_VREINTERPRET_TO_POLY(, poly, p, 64, 1, int, s, 16, 4, vreint_expected_p64_s16); + TEST_VREINTERPRET_TO_POLY(, poly, p, 64, 1, int, s, 32, 2, vreint_expected_p64_s32); + TEST_VREINTERPRET_TO_POLY(, poly, p, 64, 1, int, s, 64, 1, vreint_expected_p64_s64); + TEST_VREINTERPRET_TO_POLY(, poly, p, 64, 1, uint, u, 8, 8, vreint_expected_p64_u8); + TEST_VREINTERPRET_TO_POLY(, poly, p, 64, 1, uint, u, 16, 4, vreint_expected_p64_u16); + TEST_VREINTERPRET_TO_POLY(, poly, p, 64, 1, uint, u, 32, 2, vreint_expected_p64_u32); + TEST_VREINTERPRET_TO_POLY(, poly, p, 64, 1, uint, u, 64, 1, vreint_expected_p64_u64); + TEST_VREINTERPRET_TO_POLY(, poly, p, 64, 1, poly, p, 8, 8, vreint_expected_p64_p8); + TEST_VREINTERPRET_TO_POLY(, poly, p, 64, 1, poly, p, 16, 4, vreint_expected_p64_p16); #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) - TEST_VREINTERPRET(, poly, p, 64, 1, float, f, 16, 4, vreint_expected_p64_f16); + TEST_VREINTERPRET_TO_POLY(, poly, p, 64, 1, float, f, 16, 4, vreint_expected_p64_f16); #endif - TEST_VREINTERPRET(, poly, p, 64, 1, float, f, 32, 2, vreint_expected_p64_f32); + TEST_VREINTERPRET_TO_POLY(, poly, p, 64, 1, float, f, 32, 2, vreint_expected_p64_f32); /* vreinterpretq_p64_* tests. */ #undef TEST_MSG #define TEST_MSG "VREINTERPRETQ_P64_*" - TEST_VREINTERPRET(q, poly, p, 64, 2, int, s, 8, 16, vreint_expected_q_p64_s8); - TEST_VREINTERPRET(q, poly, p, 64, 2, int, s, 16, 8, vreint_expected_q_p64_s16); - TEST_VREINTERPRET(q, poly, p, 64, 2, int, s, 32, 4, vreint_expected_q_p64_s32); - TEST_VREINTERPRET(q, poly, p, 64, 2, int, s, 64, 2, vreint_expected_q_p64_s64); - TEST_VREINTERPRET(q, poly, p, 64, 2, uint, u, 8, 16, vreint_expected_q_p64_u8); - TEST_VREINTERPRET(q, poly, p, 64, 2, uint, u, 16, 8, vreint_expected_q_p64_u16); - TEST_VREINTERPRET(q, poly, p, 64, 2, uint, u, 32, 4, vreint_expected_q_p64_u32); - TEST_VREINTERPRET(q, poly, p, 64, 2, uint, u, 64, 2, vreint_expected_q_p64_u64); - TEST_VREINTERPRET(q, poly, p, 64, 2, poly, p, 8, 16, vreint_expected_q_p64_p8); - TEST_VREINTERPRET(q, poly, p, 64, 2, poly, p, 16, 8, vreint_expected_q_p64_p16); + TEST_VREINTERPRET_TO_POLY(q, poly, p, 64, 2, int, s, 8, 16, vreint_expected_q_p64_s8); + TEST_VREINTERPRET_TO_POLY(q, poly, p, 64, 2, int, s, 16, 8, vreint_expected_q_p64_s16); + TEST_VREINTERPRET_TO_POLY(q, poly, p, 64, 2, int, s, 32, 4, vreint_expected_q_p64_s32); + TEST_VREINTERPRET_TO_POLY(q, poly, p, 64, 2, int, s, 64, 2, vreint_expected_q_p64_s64); + TEST_VREINTERPRET_TO_POLY(q, poly, p, 64, 2, uint, u, 8, 16, vreint_expected_q_p64_u8); + TEST_VREINTERPRET_TO_POLY(q, poly, p, 64, 2, uint, u, 16, 8, vreint_expected_q_p64_u16); + TEST_VREINTERPRET_TO_POLY(q, poly, p, 64, 2, uint, u, 32, 4, vreint_expected_q_p64_u32); + TEST_VREINTERPRET_TO_POLY(q, poly, p, 64, 2, uint, u, 64, 2, vreint_expected_q_p64_u64); + TEST_VREINTERPRET_TO_POLY(q, poly, p, 64, 2, poly, p, 8, 16, vreint_expected_q_p64_p8); + TEST_VREINTERPRET_TO_POLY(q, poly, p, 64, 2, poly, p, 16, 8, vreint_expected_q_p64_p16); #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) - TEST_VREINTERPRET(q, poly, p, 64, 2, float, f, 16, 8, vreint_expected_q_p64_f16); + TEST_VREINTERPRET_TO_POLY(q, poly, p, 64, 2, float, f, 16, 8, vreint_expected_q_p64_f16); #endif - TEST_VREINTERPRET(q, poly, p, 64, 2, float, f, 32, 4, vreint_expected_q_p64_f32); + TEST_VREINTERPRET_TO_POLY(q, poly, p, 64, 2, float, f, 32, 4, vreint_expected_q_p64_f32); /* vreinterpret_*_p64 tests. */ #undef TEST_MSG @@ -184,8 +191,8 @@ int main (void) TEST_VREINTERPRET(, uint, u, 16, 4, poly, p, 64, 1, vreint_expected_u16_p64); TEST_VREINTERPRET(, uint, u, 32, 2, poly, p, 64, 1, vreint_expected_u32_p64); TEST_VREINTERPRET(, uint, u, 64, 1, poly, p, 64, 1, vreint_expected_u64_p64); - TEST_VREINTERPRET(, poly, p, 8, 8, poly, p, 64, 1, vreint_expected_p8_p64); - TEST_VREINTERPRET(, poly, p, 16, 4, poly, p, 64, 1, vreint_expected_p16_p64); + TEST_VREINTERPRET_TO_POLY(, poly, p, 8, 8, poly, p, 64, 1, vreint_expected_p8_p64); + TEST_VREINTERPRET_TO_POLY(, poly, p, 16, 4, poly, p, 64, 1, vreint_expected_p16_p64); #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) TEST_VREINTERPRET_FP(, float, f, 16, 4, poly, p, 64, 1, vreint_expected_f16_p64); #endif @@ -198,8 +205,8 @@ int main (void) TEST_VREINTERPRET(q, uint, u, 16, 8, poly, p, 64, 2, vreint_expected_q_u16_p64); TEST_VREINTERPRET(q, uint, u, 32, 4, poly, p, 64, 2, vreint_expected_q_u32_p64); TEST_VREINTERPRET(q, uint, u, 64, 2, poly, p, 64, 2, vreint_expected_q_u64_p64); - TEST_VREINTERPRET(q, poly, p, 8, 16, poly, p, 64, 2, vreint_expected_q_p8_p64); - TEST_VREINTERPRET(q, poly, p, 16, 8, poly, p, 64, 2, vreint_expected_q_p16_p64); + TEST_VREINTERPRET_TO_POLY(q, poly, p, 8, 16, poly, p, 64, 2, vreint_expected_q_p8_p64); + TEST_VREINTERPRET_TO_POLY(q, poly, p, 16, 8, poly, p, 64, 2, vreint_expected_q_p16_p64); #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) TEST_VREINTERPRET_FP(q, float, f, 16, 8, poly, p, 64, 2, vreint_expected_q_f16_p64); #endif diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vrev.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vrev.c index 0c01318..5215538 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vrev.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vrev.c @@ -132,10 +132,10 @@ void exec_vrev (void) CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_vrev16, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vrev16, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vrev16, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vrev16, ""); CHECK(TEST_MSG, int, 8, 16, PRIx8, expected_vrev16, ""); CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected_vrev16, ""); - CHECK(TEST_MSG, poly, 8, 16, PRIx8, expected_vrev16, ""); + CHECK_POLY(TEST_MSG, poly, 8, 16, PRIx8, expected_vrev16, ""); #undef TEST_MSG #define TEST_MSG "VREV32" @@ -156,14 +156,14 @@ void exec_vrev (void) CHECK(TEST_MSG, int, 16, 4, PRIx16, expected_vrev32, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vrev32, ""); CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected_vrev32, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vrev32, ""); - CHECK(TEST_MSG, poly, 16, 4, PRIx16, expected_vrev32, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vrev32, ""); + CHECK_POLY(TEST_MSG, poly, 16, 4, PRIx16, expected_vrev32, ""); CHECK(TEST_MSG, int, 8, 16, PRIx8, expected_vrev32, ""); CHECK(TEST_MSG, int, 16, 8, PRIx16, expected_vrev32, ""); CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected_vrev32, ""); CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected_vrev32, ""); - CHECK(TEST_MSG, poly, 8, 16, PRIx8, expected_vrev32, ""); - CHECK(TEST_MSG, poly, 16, 8, PRIx16, expected_vrev32, ""); + CHECK_POLY(TEST_MSG, poly, 8, 16, PRIx8, expected_vrev32, ""); + CHECK_POLY(TEST_MSG, poly, 16, 8, PRIx16, expected_vrev32, ""); #undef TEST_MSG #define TEST_MSG "VREV64" @@ -190,16 +190,16 @@ void exec_vrev (void) CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vrev64, ""); CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected_vrev64, ""); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected_vrev64, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vrev64, ""); - CHECK(TEST_MSG, poly, 16, 4, PRIx16, expected_vrev64, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vrev64, ""); + CHECK_POLY(TEST_MSG, poly, 16, 4, PRIx16, expected_vrev64, ""); CHECK(TEST_MSG, int, 8, 16, PRIx8, expected_vrev64, ""); CHECK(TEST_MSG, int, 16, 8, PRIx16, expected_vrev64, ""); CHECK(TEST_MSG, int, 32, 4, PRIx32, expected_vrev64, ""); CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected_vrev64, ""); CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected_vrev64, ""); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected_vrev64, ""); - CHECK(TEST_MSG, poly, 8, 16, PRIx8, expected_vrev64, ""); - CHECK(TEST_MSG, poly, 16, 8, PRIx16, expected_vrev64, ""); + CHECK_POLY(TEST_MSG, poly, 8, 16, PRIx8, expected_vrev64, ""); + CHECK_POLY(TEST_MSG, poly, 16, 8, PRIx16, expected_vrev64, ""); #if defined (FP16_SUPPORTED) TEST_VREV (, float, f, 16, 4, 64); diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vsXi_n.inc b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vsXi_n.inc index fec90b2..dc16416 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vsXi_n.inc +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vsXi_n.inc @@ -76,16 +76,16 @@ void FNNAME (INSN_NAME) (void) CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected, ""); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected, ""); CHECK(TEST_MSG, uint, 64, 1, PRIx64, expected, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected, ""); - CHECK(TEST_MSG, poly, 16, 4, PRIx16, expected, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected, ""); + CHECK_POLY(TEST_MSG, poly, 16, 4, PRIx16, expected, ""); CHECK(TEST_MSG, int, 8, 16, PRIx8, expected, ""); CHECK(TEST_MSG, int, 16, 8, PRIx16, expected, ""); CHECK(TEST_MSG, int, 32, 4, PRIx32, expected, ""); CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected, ""); CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected, ""); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected, ""); - CHECK(TEST_MSG, poly, 8, 16, PRIx8, expected, ""); - CHECK(TEST_MSG, poly, 16, 8, PRIx16, expected, ""); + CHECK_POLY(TEST_MSG, poly, 8, 16, PRIx8, expected, ""); + CHECK_POLY(TEST_MSG, poly, 16, 8, PRIx16, expected, ""); #ifdef EXTRA_TESTS EXTRA_TESTS(); diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vshuffle.inc b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vshuffle.inc index ad5bf31..9976488 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vshuffle.inc +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vshuffle.inc @@ -148,8 +148,8 @@ void FNNAME (INSN_NAME) (void) CHECK(test_name, uint, 8, 8, PRIx8, EXPECTED, comment); \ CHECK(test_name, uint, 16, 4, PRIx16, EXPECTED, comment); \ CHECK(test_name, uint, 32, 2, PRIx32, EXPECTED, comment); \ - CHECK(test_name, poly, 8, 8, PRIx8, EXPECTED, comment); \ - CHECK(test_name, poly, 16, 4, PRIx16, EXPECTED, comment); \ + CHECK_POLY(test_name, poly, 8, 8, PRIx8, EXPECTED, comment); \ + CHECK_POLY(test_name, poly, 16, 4, PRIx16, EXPECTED, comment); \ CHECK_FP(test_name, float, 32, 2, PRIx32, EXPECTED, comment); \ \ CHECK(test_name, int, 8, 16, PRIx8, EXPECTED, comment); \ @@ -158,8 +158,8 @@ void FNNAME (INSN_NAME) (void) CHECK(test_name, uint, 8, 16, PRIx8, EXPECTED, comment); \ CHECK(test_name, uint, 16, 8, PRIx16, EXPECTED, comment); \ CHECK(test_name, uint, 32, 4, PRIx32, EXPECTED, comment); \ - CHECK(test_name, poly, 8, 16, PRIx8, EXPECTED, comment); \ - CHECK(test_name, poly, 16, 8, PRIx16, EXPECTED, comment); \ + CHECK_POLY(test_name, poly, 8, 16, PRIx8, EXPECTED, comment); \ + CHECK_POLY(test_name, poly, 16, 8, PRIx16, EXPECTED, comment); \ CHECK_FP(test_name, float, 32, 4, PRIx32, EXPECTED, comment); \ } diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vsli_n.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vsli_n.c index 91115e5..995789f 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vsli_n.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vsli_n.c @@ -161,8 +161,8 @@ void vsli_extra(void) CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected_max_shift, COMMENT); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected_max_shift, COMMENT); CHECK(TEST_MSG, uint, 64, 1, PRIx64, expected_max_shift, COMMENT); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_max_shift, COMMENT); - CHECK(TEST_MSG, poly, 16, 4, PRIx16, expected_max_shift, COMMENT); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_max_shift, COMMENT); + CHECK_POLY(TEST_MSG, poly, 16, 4, PRIx16, expected_max_shift, COMMENT); CHECK(TEST_MSG, int, 8, 16, PRIx8, expected_max_shift, COMMENT); CHECK(TEST_MSG, int, 16, 8, PRIx16, expected_max_shift, COMMENT); CHECK(TEST_MSG, int, 32, 4, PRIx32, expected_max_shift, COMMENT); @@ -171,6 +171,6 @@ void vsli_extra(void) CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected_max_shift, COMMENT); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected_max_shift, COMMENT); CHECK(TEST_MSG, uint, 64, 2, PRIx64, expected_max_shift, COMMENT); - CHECK(TEST_MSG, poly, 8, 16, PRIx8, expected_max_shift, COMMENT); - CHECK(TEST_MSG, poly, 16, 8, PRIx16, expected_max_shift, COMMENT); + CHECK_POLY(TEST_MSG, poly, 8, 16, PRIx8, expected_max_shift, COMMENT); + CHECK_POLY(TEST_MSG, poly, 16, 8, PRIx16, expected_max_shift, COMMENT); } diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vsri_n.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vsri_n.c index 5f05314..3b58bfc 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vsri_n.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vsri_n.c @@ -163,14 +163,14 @@ void vsri_extra(void) CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected_max_shift, COMMENT); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected_max_shift, COMMENT); CHECK(TEST_MSG, uint, 64, 1, PRIx64, expected_max_shift, COMMENT); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_max_shift, COMMENT); - CHECK(TEST_MSG, poly, 16, 4, PRIx16, expected_max_shift, COMMENT); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_max_shift, COMMENT); + CHECK_POLY(TEST_MSG, poly, 16, 4, PRIx16, expected_max_shift, COMMENT); CHECK(TEST_MSG, int, 8, 16, PRIx8, expected_max_shift, COMMENT); CHECK(TEST_MSG, int, 16, 8, PRIx16, expected_max_shift, COMMENT); CHECK(TEST_MSG, int, 32, 4, PRIx32, expected_max_shift, COMMENT); CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected_max_shift, COMMENT); CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected_max_shift, COMMENT); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected_max_shift, COMMENT); - CHECK(TEST_MSG, poly, 8, 16, PRIx8, expected_max_shift, COMMENT); - CHECK(TEST_MSG, poly, 16, 8, PRIx16, expected_max_shift, COMMENT); + CHECK_POLY(TEST_MSG, poly, 8, 16, PRIx8, expected_max_shift, COMMENT); + CHECK_POLY(TEST_MSG, poly, 16, 8, PRIx16, expected_max_shift, COMMENT); } diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vstX_lane.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vstX_lane.c index f5bf3bd..3329e6b 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vstX_lane.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vstX_lane.c @@ -460,14 +460,14 @@ void exec_vstX_lane (void) CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_st2_0, CMT); CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected_st2_0, CMT); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected_st2_0, CMT); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_st2_0, CMT); - CHECK(TEST_MSG, poly, 16, 4, PRIx16, expected_st2_0, CMT); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_st2_0, CMT); + CHECK_POLY(TEST_MSG, poly, 16, 4, PRIx16, expected_st2_0, CMT); CHECK_FP(TEST_MSG, float, 32, 2, PRIx32, expected_st2_0, CMT); CHECK(TEST_MSG, int, 16, 8, PRIx16, expected_st2_0, CMT); CHECK(TEST_MSG, int, 32, 4, PRIx32, expected_st2_0, CMT); CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected_st2_0, CMT); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected_st2_0, CMT); - CHECK(TEST_MSG, poly, 16, 8, PRIx16, expected_st2_0, CMT); + CHECK_POLY(TEST_MSG, poly, 16, 8, PRIx16, expected_st2_0, CMT); CHECK_FP(TEST_MSG, float, 32, 4, PRIx32, expected_st2_0, CMT); #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) CHECK_FP(TEST_MSG, float, 16, 4, PRIx16, expected_st2_0, CMT); @@ -483,14 +483,14 @@ void exec_vstX_lane (void) CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_st2_1, CMT); CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected_st2_1, CMT); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected_st2_1, CMT); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_st2_1, CMT); - CHECK(TEST_MSG, poly, 16, 4, PRIx16, expected_st2_1, CMT); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_st2_1, CMT); + CHECK_POLY(TEST_MSG, poly, 16, 4, PRIx16, expected_st2_1, CMT); CHECK_FP(TEST_MSG, float, 32, 2, PRIx32, expected_st2_1, CMT); CHECK(TEST_MSG, int, 16, 8, PRIx16, expected_st2_1, CMT); CHECK(TEST_MSG, int, 32, 4, PRIx32, expected_st2_1, CMT); CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected_st2_1, CMT); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected_st2_1, CMT); - CHECK(TEST_MSG, poly, 16, 8, PRIx16, expected_st2_1, CMT); + CHECK_POLY(TEST_MSG, poly, 16, 8, PRIx16, expected_st2_1, CMT); CHECK_FP(TEST_MSG, float, 32, 4, PRIx32, expected_st2_1, CMT); #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) CHECK_FP(TEST_MSG, float, 16, 4, PRIx16, expected_st2_1, CMT); @@ -512,14 +512,14 @@ void exec_vstX_lane (void) CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_st3_0, CMT); CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected_st3_0, CMT); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected_st3_0, CMT); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_st3_0, CMT); - CHECK(TEST_MSG, poly, 16, 4, PRIx16, expected_st3_0, CMT); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_st3_0, CMT); + CHECK_POLY(TEST_MSG, poly, 16, 4, PRIx16, expected_st3_0, CMT); CHECK_FP(TEST_MSG, float, 32, 2, PRIx32, expected_st3_0, CMT); CHECK(TEST_MSG, int, 16, 8, PRIx16, expected_st3_0, CMT); CHECK(TEST_MSG, int, 32, 4, PRIx32, expected_st3_0, CMT); CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected_st3_0, CMT); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected_st3_0, CMT); - CHECK(TEST_MSG, poly, 16, 8, PRIx16, expected_st3_0, CMT); + CHECK_POLY(TEST_MSG, poly, 16, 8, PRIx16, expected_st3_0, CMT); CHECK_FP(TEST_MSG, float, 32, 4, PRIx32, expected_st3_0, CMT); #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) CHECK_FP(TEST_MSG, float, 16, 4, PRIx16, expected_st3_0, CMT); @@ -536,14 +536,14 @@ void exec_vstX_lane (void) CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_st3_1, CMT); CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected_st3_1, CMT); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected_st3_1, CMT); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_st3_1, CMT); - CHECK(TEST_MSG, poly, 16, 4, PRIx16, expected_st3_1, CMT); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_st3_1, CMT); + CHECK_POLY(TEST_MSG, poly, 16, 4, PRIx16, expected_st3_1, CMT); CHECK_FP(TEST_MSG, float, 32, 2, PRIx32, expected_st3_1, CMT); CHECK(TEST_MSG, int, 16, 8, PRIx16, expected_st3_1, CMT); CHECK(TEST_MSG, int, 32, 4, PRIx32, expected_st3_1, CMT); CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected_st3_1, CMT); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected_st3_1, CMT); - CHECK(TEST_MSG, poly, 16, 8, PRIx16, expected_st3_1, CMT); + CHECK_POLY(TEST_MSG, poly, 16, 8, PRIx16, expected_st3_1, CMT); CHECK_FP(TEST_MSG, float, 32, 4, PRIx32, expected_st3_1, CMT); #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) CHECK_FP(TEST_MSG, float, 16, 4, PRIx16, expected_st3_1, CMT); @@ -560,14 +560,14 @@ void exec_vstX_lane (void) CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_st3_2, CMT); CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected_st3_2, CMT); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected_st3_2, CMT); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_st3_2, CMT); - CHECK(TEST_MSG, poly, 16, 4, PRIx16, expected_st3_2, CMT); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_st3_2, CMT); + CHECK_POLY(TEST_MSG, poly, 16, 4, PRIx16, expected_st3_2, CMT); CHECK_FP(TEST_MSG, float, 32, 2, PRIx32, expected_st3_2, CMT); CHECK(TEST_MSG, int, 16, 8, PRIx16, expected_st3_2, CMT); CHECK(TEST_MSG, int, 32, 4, PRIx32, expected_st3_2, CMT); CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected_st3_2, CMT); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected_st3_2, CMT); - CHECK(TEST_MSG, poly, 16, 8, PRIx16, expected_st3_2, CMT); + CHECK_POLY(TEST_MSG, poly, 16, 8, PRIx16, expected_st3_2, CMT); CHECK_FP(TEST_MSG, float, 32, 4, PRIx32, expected_st3_2, CMT); #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) CHECK_FP(TEST_MSG, float, 16, 4, PRIx16, expected_st3_2, CMT); @@ -589,14 +589,14 @@ void exec_vstX_lane (void) CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_st4_0, CMT); CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected_st4_0, CMT); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected_st4_0, CMT); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_st4_0, CMT); - CHECK(TEST_MSG, poly, 16, 4, PRIx16, expected_st4_0, CMT); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_st4_0, CMT); + CHECK_POLY(TEST_MSG, poly, 16, 4, PRIx16, expected_st4_0, CMT); CHECK_FP(TEST_MSG, float, 32, 2, PRIx32, expected_st4_0, CMT); CHECK(TEST_MSG, int, 16, 8, PRIx16, expected_st4_0, CMT); CHECK(TEST_MSG, int, 32, 4, PRIx32, expected_st4_0, CMT); CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected_st4_0, CMT); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected_st4_0, CMT); - CHECK(TEST_MSG, poly, 16, 8, PRIx16, expected_st4_0, CMT); + CHECK_POLY(TEST_MSG, poly, 16, 8, PRIx16, expected_st4_0, CMT); CHECK_FP(TEST_MSG, float, 32, 4, PRIx32, expected_st4_0, CMT); #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) CHECK_FP(TEST_MSG, float, 16, 4, PRIx16, expected_st4_0, CMT); @@ -613,14 +613,14 @@ void exec_vstX_lane (void) CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_st4_1, CMT); CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected_st4_1, CMT); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected_st4_1, CMT); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_st4_1, CMT); - CHECK(TEST_MSG, poly, 16, 4, PRIx16, expected_st4_1, CMT); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_st4_1, CMT); + CHECK_POLY(TEST_MSG, poly, 16, 4, PRIx16, expected_st4_1, CMT); CHECK_FP(TEST_MSG, float, 32, 2, PRIx32, expected_st4_1, CMT); CHECK(TEST_MSG, int, 16, 8, PRIx16, expected_st4_1, CMT); CHECK(TEST_MSG, int, 32, 4, PRIx32, expected_st4_1, CMT); CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected_st4_1, CMT); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected_st4_1, CMT); - CHECK(TEST_MSG, poly, 16, 8, PRIx16, expected_st4_1, CMT); + CHECK_POLY(TEST_MSG, poly, 16, 8, PRIx16, expected_st4_1, CMT); CHECK_FP(TEST_MSG, float, 32, 4, PRIx32, expected_st4_1, CMT); #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) CHECK_FP(TEST_MSG, float, 16, 4, PRIx16, expected_st4_1, CMT); @@ -637,14 +637,14 @@ void exec_vstX_lane (void) CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_st4_2, CMT); CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected_st4_2, CMT); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected_st4_2, CMT); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_st4_2, CMT); - CHECK(TEST_MSG, poly, 16, 4, PRIx16, expected_st4_2, CMT); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_st4_2, CMT); + CHECK_POLY(TEST_MSG, poly, 16, 4, PRIx16, expected_st4_2, CMT); CHECK_FP(TEST_MSG, float, 32, 2, PRIx32, expected_st4_2, CMT); CHECK(TEST_MSG, int, 16, 8, PRIx16, expected_st4_2, CMT); CHECK(TEST_MSG, int, 32, 4, PRIx32, expected_st4_2, CMT); CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected_st4_2, CMT); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected_st4_2, CMT); - CHECK(TEST_MSG, poly, 16, 8, PRIx16, expected_st4_2, CMT); + CHECK_POLY(TEST_MSG, poly, 16, 8, PRIx16, expected_st4_2, CMT); CHECK_FP(TEST_MSG, float, 32, 4, PRIx32, expected_st4_2, CMT); #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) CHECK_FP(TEST_MSG, float, 16, 4, PRIx16, expected_st4_2, CMT); @@ -661,14 +661,14 @@ void exec_vstX_lane (void) CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_st4_3, CMT); CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected_st4_3, CMT); CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected_st4_3, CMT); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_st4_3, CMT); - CHECK(TEST_MSG, poly, 16, 4, PRIx16, expected_st4_3, CMT); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_st4_3, CMT); + CHECK_POLY(TEST_MSG, poly, 16, 4, PRIx16, expected_st4_3, CMT); CHECK_FP(TEST_MSG, float, 32, 2, PRIx32, expected_st4_3, CMT); CHECK(TEST_MSG, int, 16, 8, PRIx16, expected_st4_3, CMT); CHECK(TEST_MSG, int, 32, 4, PRIx32, expected_st4_3, CMT); CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected_st4_3, CMT); CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected_st4_3, CMT); - CHECK(TEST_MSG, poly, 16, 8, PRIx16, expected_st4_3, CMT); + CHECK_POLY(TEST_MSG, poly, 16, 8, PRIx16, expected_st4_3, CMT); CHECK_FP(TEST_MSG, float, 32, 4, PRIx32, expected_st4_3, CMT); #if defined (__ARM_FP16_FORMAT_IEEE) || defined (__ARM_FP16_FORMAT_ALTERNATIVE) CHECK_FP(TEST_MSG, float, 16, 4, PRIx16, expected_st4_3, CMT); diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vtbX.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vtbX.c index 2a08886..c3e1d9b 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vtbX.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vtbX.c @@ -167,7 +167,7 @@ void exec_vtbX (void) CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_vtbl1, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vtbl1, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vtbl1, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vtbl1, ""); /* Check vtbl2. */ clean_results (); @@ -177,7 +177,7 @@ void exec_vtbX (void) CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_vtbl2, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vtbl2, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vtbl2, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vtbl2, ""); /* Check vtbl3. */ clean_results (); @@ -187,7 +187,7 @@ void exec_vtbX (void) CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_vtbl3, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vtbl3, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vtbl3, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vtbl3, ""); /* Check vtbl4. */ clean_results (); @@ -197,7 +197,7 @@ void exec_vtbX (void) CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_vtbl4, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vtbl4, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vtbl4, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vtbl4, ""); /* Now test VTBX. */ @@ -249,7 +249,7 @@ void exec_vtbX (void) CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_vtbx1, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vtbx1, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vtbx1, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vtbx1, ""); /* Check vtbx2. */ clean_results (); @@ -259,7 +259,7 @@ void exec_vtbX (void) CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_vtbx2, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vtbx2, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vtbx2, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vtbx2, ""); /* Check vtbx3. */ clean_results (); @@ -269,7 +269,7 @@ void exec_vtbX (void) CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_vtbx3, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vtbx3, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vtbx3, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vtbx3, ""); /* Check vtbx4. */ clean_results (); @@ -279,7 +279,7 @@ void exec_vtbX (void) CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_vtbx4, ""); CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_vtbx4, ""); - CHECK(TEST_MSG, poly, 8, 8, PRIx8, expected_vtbx4, ""); + CHECK_POLY(TEST_MSG, poly, 8, 8, PRIx8, expected_vtbx4, ""); } int main (void)