From patchwork Tue May 12 20:30:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 48409 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 790DA2121F for ; Tue, 12 May 2015 20:33:58 +0000 (UTC) Received: by wgin8 with SMTP id n8sf4451819wgi.0 for ; Tue, 12 May 2015 13:33:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:mailing-list :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:sender:delivered-to:from:to:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results; bh=Skm0Gxvil9biz0JfGXexWl7H7PpSjXYrhTQhbk9x8II=; b=KV+5KDSXPMj9zwaVX6LaOWy1kM0xZisweqzLeyJeK0C6+SPycLxI+VQSSQb8vqv+pc azq0rScVLcICtv4bpXYeJHTykBKp+VuA0QGHpwAYELaLIWPuFt2ufw9H0d7XxpIAcWPK esuhiVC5DNlzOSkr06vwMdGEl0ZFyiNPZL4SqCMhhER/jGEtTF+sDMfBzvrU9iXy22nz IKwJ5GPLICe626VeYyRC88S4NkscSQJsGtkAxYsbuMCEWPL90Bvaiitu1rsTlPpnUGwa DalEJtZ7edVRc7QIpoDRUJL+rNuDwqzLSwJ6SAQbYO40iWPBh5jYO2WveNwqZjykh7N+ IgFQ== X-Gm-Message-State: ALoCoQnVCTIExWUTVqQUZ+xyXRbLdZgocdUutUhf4Cu66/laqfpVbVIBRuoLBnHZLVYUU4xjZ/Lk X-Received: by 10.112.151.146 with SMTP id uq18mr11634695lbb.20.1431462837754; Tue, 12 May 2015 13:33:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.182.228 with SMTP id eh4ls84853lac.45.gmail; Tue, 12 May 2015 13:33:57 -0700 (PDT) X-Received: by 10.152.207.41 with SMTP id lt9mr13223410lac.52.1431462837540; Tue, 12 May 2015 13:33:57 -0700 (PDT) Received: from mail-la0-x22d.google.com (mail-la0-x22d.google.com. [2a00:1450:4010:c03::22d]) by mx.google.com with ESMTPS id uh8si10997572lac.136.2015.05.12.13.33.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 May 2015 13:33:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::22d as permitted sender) client-ip=2a00:1450:4010:c03::22d; Received: by labbd9 with SMTP id bd9so14880074lab.2 for ; Tue, 12 May 2015 13:33:57 -0700 (PDT) X-Received: by 10.112.204.6 with SMTP id ku6mr13234853lbc.73.1431462837399; Tue, 12 May 2015 13:33:57 -0700 (PDT) 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.108.230 with SMTP id hn6csp137363lbb; Tue, 12 May 2015 13:33:55 -0700 (PDT) X-Received: by 10.66.100.233 with SMTP id fb9mr30457145pab.128.1431462835235; Tue, 12 May 2015 13:33:55 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id z6si5626214pdm.19.2015.05.12.13.33.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 May 2015 13:33:55 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-397717-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 76615 invoked by alias); 12 May 2015 20:31:28 -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 76558 invoked by uid 89); 12 May 2015 20:31:27 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f177.google.com Received: from mail-wi0-f177.google.com (HELO mail-wi0-f177.google.com) (209.85.212.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 12 May 2015 20:31:24 +0000 Received: by widdi4 with SMTP id di4so30727179wid.0 for ; Tue, 12 May 2015 13:31:21 -0700 (PDT) X-Received: by 10.180.186.99 with SMTP id fj3mr33595414wic.10.1431462681803; Tue, 12 May 2015 13:31:21 -0700 (PDT) Received: from babel.clyon.hd.free.fr (vig38-2-82-225-222-175.fbx.proxad.net. [82.225.222.175]) by mx.google.com with ESMTPSA id u9sm24921095wju.44.2015.05.12.13.31.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 May 2015 13:31:21 -0700 (PDT) From: Christophe Lyon To: gcc-patches@gcc.gnu.org Subject: [Patch ARM-AArch64/testsuite Neon intrinsics 10/13] Add vqshl_n tests. Date: Tue, 12 May 2015 22:30:58 +0200 Message-Id: <1431462661-27247-11-git-send-email-christophe.lyon@linaro.org> In-Reply-To: <1431462661-27247-1-git-send-email-christophe.lyon@linaro.org> References: <1431462661-27247-1-git-send-email-christophe.lyon@linaro.org> 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::22d 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 diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqshl_n.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqshl_n.c new file mode 100644 index 0000000..92a5e0d --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqshl_n.c @@ -0,0 +1,234 @@ +#include +#include "arm-neon-ref.h" +#include "compute-ref-data.h" + +/* Expected values of cumulative_saturation flag. */ +int VECT_VAR(expected_cumulative_sat,int,8,8) = 0; +int VECT_VAR(expected_cumulative_sat,int,16,4) = 0; +int VECT_VAR(expected_cumulative_sat,int,32,2) = 0; +int VECT_VAR(expected_cumulative_sat,int,64,1) = 0; +int VECT_VAR(expected_cumulative_sat,uint,8,8) = 1; +int VECT_VAR(expected_cumulative_sat,uint,16,4) = 1; +int VECT_VAR(expected_cumulative_sat,uint,32,2) = 1; +int VECT_VAR(expected_cumulative_sat,uint,64,1) = 1; +int VECT_VAR(expected_cumulative_sat,int,8,16) = 0; +int VECT_VAR(expected_cumulative_sat,int,16,8) = 0; +int VECT_VAR(expected_cumulative_sat,int,32,4) = 0; +int VECT_VAR(expected_cumulative_sat,int,64,2) = 0; +int VECT_VAR(expected_cumulative_sat,uint,8,16) = 1; +int VECT_VAR(expected_cumulative_sat,uint,16,8) = 1; +int VECT_VAR(expected_cumulative_sat,uint,32,4) = 1; +int VECT_VAR(expected_cumulative_sat,uint,64,2) = 1; + +/* Expected results. */ +VECT_VAR_DECL(expected,int,8,8) [] = { 0xc0, 0xc4, 0xc8, 0xcc, + 0xd0, 0xd4, 0xd8, 0xdc }; +VECT_VAR_DECL(expected,int,16,4) [] = { 0xffe0, 0xffe2, 0xffe4, 0xffe6 }; +VECT_VAR_DECL(expected,int,32,2) [] = { 0xffffffe0, 0xffffffe2 }; +VECT_VAR_DECL(expected,int,64,1) [] = { 0xffffffffffffffc0 }; +VECT_VAR_DECL(expected,uint,8,8) [] = { 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff }; +VECT_VAR_DECL(expected,uint,16,4) [] = { 0xffff, 0xffff, 0xffff, 0xffff }; +VECT_VAR_DECL(expected,uint,32,2) [] = { 0xffffffff, 0xffffffff }; +VECT_VAR_DECL(expected,uint,64,1) [] = { 0xffffffffffffffff }; +VECT_VAR_DECL(expected,int,8,16) [] = { 0xc0, 0xc4, 0xc8, 0xcc, + 0xd0, 0xd4, 0xd8, 0xdc, + 0xe0, 0xe4, 0xe8, 0xec, + 0xf0, 0xf4, 0xf8, 0xfc }; +VECT_VAR_DECL(expected,int,16,8) [] = { 0xffe0, 0xffe2, 0xffe4, 0xffe6, + 0xffe8, 0xffea, 0xffec, 0xffee }; +VECT_VAR_DECL(expected,int,32,4) [] = { 0xffffffe0, 0xffffffe2, + 0xffffffe4, 0xffffffe6 }; +VECT_VAR_DECL(expected,int,64,2) [] = { 0xffffffffffffffc0, 0xffffffffffffffc4 }; +VECT_VAR_DECL(expected,uint,8,16) [] = { 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff }; +VECT_VAR_DECL(expected,uint,16,8) [] = { 0xffff, 0xffff, 0xffff, 0xffff, + 0xffff, 0xffff, 0xffff, 0xffff }; +VECT_VAR_DECL(expected,uint,32,4) [] = { 0xffffffff, 0xffffffff, + 0xffffffff, 0xffffffff }; +VECT_VAR_DECL(expected,uint,64,2) [] = { 0xffffffffffffffff, + 0xffffffffffffffff }; + +/* Expected values of cumulative_saturation flag with max positive input. */ +int VECT_VAR(expected_cumulative_sat_max,int,8,8) = 1; +int VECT_VAR(expected_cumulative_sat_max,int,16,4) = 1; +int VECT_VAR(expected_cumulative_sat_max,int,32,2) = 1; +int VECT_VAR(expected_cumulative_sat_max,int,64,1) = 1; +int VECT_VAR(expected_cumulative_sat_max,uint,8,8) = 1; +int VECT_VAR(expected_cumulative_sat_max,uint,16,4) = 1; +int VECT_VAR(expected_cumulative_sat_max,uint,32,2) = 1; +int VECT_VAR(expected_cumulative_sat_max,uint,64,1) = 1; +int VECT_VAR(expected_cumulative_sat_max,int,8,16) = 1; +int VECT_VAR(expected_cumulative_sat_max,int,16,8) = 1; +int VECT_VAR(expected_cumulative_sat_max,int,32,4) = 1; +int VECT_VAR(expected_cumulative_sat_max,int,64,2) = 1; +int VECT_VAR(expected_cumulative_sat_max,uint,8,16) = 1; +int VECT_VAR(expected_cumulative_sat_max,uint,16,8) = 1; +int VECT_VAR(expected_cumulative_sat_max,uint,32,4) = 1; +int VECT_VAR(expected_cumulative_sat_max,uint,64,2) = 1; + +/* Expected results with max positive input. */ +VECT_VAR_DECL(expected_max,int,8,8) [] = { 0x7f, 0x7f, 0x7f, 0x7f, + 0x7f, 0x7f, 0x7f, 0x7f }; +VECT_VAR_DECL(expected_max,int,16,4) [] = { 0x7fff, 0x7fff, 0x7fff, 0x7fff }; +VECT_VAR_DECL(expected_max,int,32,2) [] = { 0x7fffffff, 0x7fffffff }; +VECT_VAR_DECL(expected_max,int,64,1) [] = { 0x7fffffffffffffff }; +VECT_VAR_DECL(expected_max,uint,8,8) [] = { 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff }; +VECT_VAR_DECL(expected_max,uint,16,4) [] = { 0xffff, 0xffff, 0xffff, 0xffff }; +VECT_VAR_DECL(expected_max,uint,32,2) [] = { 0xffffffff, 0xffffffff }; +VECT_VAR_DECL(expected_max,uint,64,1) [] = { 0xffffffffffffffff }; +VECT_VAR_DECL(expected_max,int,8,16) [] = { 0x7f, 0x7f, 0x7f, 0x7f, + 0x7f, 0x7f, 0x7f, 0x7f, + 0x7f, 0x7f, 0x7f, 0x7f, + 0x7f, 0x7f, 0x7f, 0x7f }; +VECT_VAR_DECL(expected_max,int,16,8) [] = { 0x7fff, 0x7fff, 0x7fff, 0x7fff, + 0x7fff, 0x7fff, 0x7fff, 0x7fff }; +VECT_VAR_DECL(expected_max,int,32,4) [] = { 0x7fffffff, 0x7fffffff, + 0x7fffffff, 0x7fffffff }; +VECT_VAR_DECL(expected_max,int,64,2) [] = { 0x7fffffffffffffff, + 0x7fffffffffffffff }; +VECT_VAR_DECL(expected_max,uint,8,16) [] = { 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff }; +VECT_VAR_DECL(expected_max,uint,16,8) [] = { 0xffff, 0xffff, 0xffff, 0xffff, + 0xffff, 0xffff, 0xffff, 0xffff }; +VECT_VAR_DECL(expected_max,uint,32,4) [] = { 0xffffffff, 0xffffffff, + 0xffffffff, 0xffffffff }; +VECT_VAR_DECL(expected_max,uint,64,2) [] = { 0xffffffffffffffff, + 0xffffffffffffffff }; + +#define INSN vqshl +#define TEST_MSG "VQSHL_N/VQSHLQ_N" + +#define FNNAME1(NAME) void exec_ ## NAME ##_n (void) +#define FNNAME(NAME) FNNAME1(NAME) + +FNNAME (INSN) +{ + /* Basic test: v2=vqshl_n(v1,v), then store the result. */ +#define TEST_VQSHL_N2(INSN, Q, T1, T2, W, N, V, EXPECTED_CUMULATIVE_SAT, CMT) \ + Set_Neon_Cumulative_Sat(0, VECT_VAR(vector_res, T1, W, N)); \ + VECT_VAR(vector_res, T1, W, N) = \ + INSN##Q##_n_##T2##W(VECT_VAR(vector, T1, W, N), \ + V); \ + vst1##Q##_##T2##W(VECT_VAR(result, T1, W, N), \ + VECT_VAR(vector_res, T1, W, N)); \ + CHECK_CUMULATIVE_SAT(TEST_MSG, T1, W, N, EXPECTED_CUMULATIVE_SAT, CMT) + + /* Two auxliary macros are necessary to expand INSN */ +#define TEST_VQSHL_N1(INSN, T3, Q, T1, T2, W, N, EXPECTED_CUMULATIVE_SAT, CMT) \ + TEST_VQSHL_N2(INSN, T3, Q, T1, T2, W, N, EXPECTED_CUMULATIVE_SAT, CMT) + +#define TEST_VQSHL_N(T3, Q, T1, T2, W, N, EXPECTED_CUMULATIVE_SAT, CMT) \ + TEST_VQSHL_N1(INSN, T3, Q, T1, T2, W, N, EXPECTED_CUMULATIVE_SAT, CMT) + + DECL_VARIABLE_ALL_VARIANTS(vector); + DECL_VARIABLE_ALL_VARIANTS(vector_res); + + clean_results (); + + TEST_MACRO_ALL_VARIANTS_2_5(VLOAD, vector, buffer); + + /* Choose shift amount arbitrarily. */ +#define CMT "" + TEST_VQSHL_N(, int, s, 8, 8, 2, expected_cumulative_sat, CMT); + TEST_VQSHL_N(, int, s, 16, 4, 1, expected_cumulative_sat, CMT); + TEST_VQSHL_N(, int, s, 32, 2, 1, expected_cumulative_sat, CMT); + TEST_VQSHL_N(, int, s, 64, 1, 2, expected_cumulative_sat, CMT); + TEST_VQSHL_N(, uint, u, 8, 8, 3, expected_cumulative_sat, CMT); + TEST_VQSHL_N(, uint, u, 16, 4, 2, expected_cumulative_sat, CMT); + TEST_VQSHL_N(, uint, u, 32, 2, 3, expected_cumulative_sat, CMT); + TEST_VQSHL_N(, uint, u, 64, 1, 3, expected_cumulative_sat, CMT); + + TEST_VQSHL_N(q, int, s, 8, 16, 2, expected_cumulative_sat, CMT); + TEST_VQSHL_N(q, int, s, 16, 8, 1, expected_cumulative_sat, CMT); + TEST_VQSHL_N(q, int, s, 32, 4, 1, expected_cumulative_sat, CMT); + TEST_VQSHL_N(q, int, s, 64, 2, 2, expected_cumulative_sat, CMT); + TEST_VQSHL_N(q, uint, u, 8, 16, 3, expected_cumulative_sat, CMT); + TEST_VQSHL_N(q, uint, u, 16, 8, 2, expected_cumulative_sat, CMT); + TEST_VQSHL_N(q, uint, u, 32, 4, 3, expected_cumulative_sat, CMT); + TEST_VQSHL_N(q, uint, u, 64, 2, 3, expected_cumulative_sat, CMT); + + CHECK(TEST_MSG, int, 8, 8, PRIx8, expected, CMT); + CHECK(TEST_MSG, int, 16, 4, PRIx16, expected, CMT); + CHECK(TEST_MSG, int, 32, 2, PRIx32, expected, CMT); + CHECK(TEST_MSG, int, 64, 1, PRIx64, expected, CMT); + CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected, CMT); + CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected, CMT); + CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected, CMT); + CHECK(TEST_MSG, uint, 64, 1, PRIx64, expected, CMT); + CHECK(TEST_MSG, int, 8, 16, PRIx8, expected, CMT); + CHECK(TEST_MSG, int, 16, 8, PRIx16, expected, CMT); + CHECK(TEST_MSG, int, 32, 4, PRIx32, expected, CMT); + CHECK(TEST_MSG, int, 64, 2, PRIx64, expected, CMT); + CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected, CMT); + CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected, CMT); + CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected, CMT); + CHECK(TEST_MSG, uint, 64, 2, PRIx64, expected, CMT); + + + /* Fill input vector with max value, to check saturation on limits. */ + VDUP(vector, , int, s, 8, 8, 0x7F); + VDUP(vector, , int, s, 16, 4, 0x7FFF); + VDUP(vector, , int, s, 32, 2, 0x7FFFFFFF); + VDUP(vector, , int, s, 64, 1, 0x7FFFFFFFFFFFFFFFLL); + VDUP(vector, , uint, u, 8, 8, 0xFF); + VDUP(vector, , uint, u, 16, 4, 0xFFFF); + VDUP(vector, , uint, u, 32, 2, 0xFFFFFFFF); + VDUP(vector, , uint, u, 64, 1, 0xFFFFFFFFFFFFFFFFULL); + VDUP(vector, q, int, s, 8, 16, 0x7F); + VDUP(vector, q, int, s, 16, 8, 0x7FFF); + VDUP(vector, q, int, s, 32, 4, 0x7FFFFFFF); + VDUP(vector, q, int, s, 64, 2, 0x7FFFFFFFFFFFFFFFLL); + VDUP(vector, q, uint, u, 8, 16, 0xFF); + VDUP(vector, q, uint, u, 16, 8, 0xFFFF); + VDUP(vector, q, uint, u, 32, 4, 0xFFFFFFFF); + VDUP(vector, q, uint, u, 64, 2, 0xFFFFFFFFFFFFFFFFULL); + +#undef CMT +#define CMT " (with max input)" + TEST_VQSHL_N(, int, s, 8, 8, 2, expected_cumulative_sat_max, CMT); + TEST_VQSHL_N(, int, s, 16, 4, 1, expected_cumulative_sat_max, CMT); + TEST_VQSHL_N(, int, s, 32, 2, 1, expected_cumulative_sat_max, CMT); + TEST_VQSHL_N(, int, s, 64, 1, 2, expected_cumulative_sat_max, CMT); + TEST_VQSHL_N(, uint, u, 8, 8, 3, expected_cumulative_sat_max, CMT); + TEST_VQSHL_N(, uint, u, 16, 4, 2, expected_cumulative_sat_max, CMT); + TEST_VQSHL_N(, uint, u, 32, 2, 3, expected_cumulative_sat_max, CMT); + TEST_VQSHL_N(, uint, u, 64, 1, 3, expected_cumulative_sat_max, CMT); + + TEST_VQSHL_N(q, int, s, 8, 16, 2, expected_cumulative_sat_max, CMT); + TEST_VQSHL_N(q, int, s, 16, 8, 1, expected_cumulative_sat_max, CMT); + TEST_VQSHL_N(q, int, s, 32, 4, 1, expected_cumulative_sat_max, CMT); + TEST_VQSHL_N(q, int, s, 64, 2, 2, expected_cumulative_sat_max, CMT); + TEST_VQSHL_N(q, uint, u, 8, 16, 3, expected_cumulative_sat_max, CMT); + TEST_VQSHL_N(q, uint, u, 16, 8, 2, expected_cumulative_sat_max, CMT); + TEST_VQSHL_N(q, uint, u, 32, 4, 3, expected_cumulative_sat_max, CMT); + TEST_VQSHL_N(q, uint, u, 64, 2, 3, expected_cumulative_sat_max, CMT); + + CHECK(TEST_MSG, int, 8, 8, PRIx8, expected_max, CMT); + CHECK(TEST_MSG, int, 16, 4, PRIx16, expected_max, CMT); + CHECK(TEST_MSG, int, 32, 2, PRIx32, expected_max, CMT); + CHECK(TEST_MSG, int, 64, 1, PRIx64, expected_max, CMT); + CHECK(TEST_MSG, uint, 8, 8, PRIx8, expected_max, CMT); + CHECK(TEST_MSG, uint, 16, 4, PRIx16, expected_max, CMT); + CHECK(TEST_MSG, uint, 32, 2, PRIx32, expected_max, CMT); + CHECK(TEST_MSG, uint, 64, 1, PRIx64, expected_max, CMT); + CHECK(TEST_MSG, int, 8, 16, PRIx8, expected_max, CMT); + CHECK(TEST_MSG, int, 16, 8, PRIx16, expected_max, CMT); + CHECK(TEST_MSG, int, 32, 4, PRIx32, expected_max, CMT); + CHECK(TEST_MSG, int, 64, 2, PRIx64, expected_max, CMT); + CHECK(TEST_MSG, uint, 8, 16, PRIx8, expected_max, CMT); + CHECK(TEST_MSG, uint, 16, 8, PRIx16, expected_max, CMT); + CHECK(TEST_MSG, uint, 32, 4, PRIx32, expected_max, CMT); + CHECK(TEST_MSG, uint, 64, 2, PRIx64, expected_max, CMT); +} + +int main (void) +{ + exec_vqshl_n (); + return 0; +}