From patchwork Sun Jan 29 23:18:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?6ZKf5bGF5ZOy?= X-Patchwork-Id: 1733662 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P4nMC3ctZz23hS for ; Mon, 30 Jan 2023 10:19:19 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6E4CF3858C50 for ; Sun, 29 Jan 2023 23:19:17 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgau2.qq.com (smtpbgau2.qq.com [54.206.34.216]) by sourceware.org (Postfix) with ESMTPS id DDC92385840A for ; Sun, 29 Jan 2023 23:18:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DDC92385840A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai X-QQ-mid: bizesmtp90t1675034317tzi90vqs Received: from server1.localdomain ( [58.60.1.22]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 30 Jan 2023 07:18:36 +0800 (CST) X-QQ-SSF: 01400000002000E0L000B00A0000000 X-QQ-FEAT: LdeREJSZj29RdoaVAOZDfhkbNDJwFwImcPpxiwOWNxLTR4MMDZgoL/gyvQtrc /56iLbSEqoEb3925+L1ryIWaeoJ+vgLS+yqrmvP9lXQ9lKuOK9YuoeIHl56QsgfUgC3/Vsr 3cLPzQil/qUWc0FZAIiT8Jn8Two98Q5PqsQuu5jNR4sNOOABOL7ESlvwb4GuayIJQN8A7Of Pq/5EYlFhyBTVveDFkh2riH79vvcF9iuoqcbCyeap4F2l0K3ri5s/Q6HhEUOtKjHNFt0EXp W82nXwuXx8SpHitDD6530rTOJjW7qlST0Qih8mvQ3wKyqxo2ySCHII8luR3Uud2b4BOuAl3 QoEo91VICdjWbBsXcyq+Hd83ZuOFKWq2GG8OxhHsW6SqmWa4+UQNkEZua+ukw== X-QQ-GoodBg: 2 From: juzhe.zhong@rivai.ai To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, palmer@dabbelt.com, Ju-Zhe Zhong Subject: [PATCH] RISC-V: Add vsuxei C API intrinsic testcase Date: Mon, 30 Jan 2023 07:18:34 +0800 Message-Id: <20230129231834.91087-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvr:qybglogicsvr7 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" From: Ju-Zhe Zhong gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/base/vsuxei16_v-1.c: New test. * gcc.target/riscv/rvv/base/vsuxei16_v-2.c: New test. * gcc.target/riscv/rvv/base/vsuxei16_v-3.c: New test. * gcc.target/riscv/rvv/base/vsuxei16_v_m-1.c: New test. * gcc.target/riscv/rvv/base/vsuxei16_v_m-2.c: New test. * gcc.target/riscv/rvv/base/vsuxei16_v_m-3.c: New test. * gcc.target/riscv/rvv/base/vsuxei32_v-1.c: New test. * gcc.target/riscv/rvv/base/vsuxei32_v-2.c: New test. * gcc.target/riscv/rvv/base/vsuxei32_v-3.c: New test. * gcc.target/riscv/rvv/base/vsuxei32_v_m-1.c: New test. * gcc.target/riscv/rvv/base/vsuxei32_v_m-2.c: New test. * gcc.target/riscv/rvv/base/vsuxei32_v_m-3.c: New test. * gcc.target/riscv/rvv/base/vsuxei64_v-1.c: New test. * gcc.target/riscv/rvv/base/vsuxei64_v-2.c: New test. * gcc.target/riscv/rvv/base/vsuxei64_v-3.c: New test. * gcc.target/riscv/rvv/base/vsuxei64_v_m-1.c: New test. * gcc.target/riscv/rvv/base/vsuxei64_v_m-2.c: New test. * gcc.target/riscv/rvv/base/vsuxei64_v_m-3.c: New test. * gcc.target/riscv/rvv/base/vsuxei8_v-1.c: New test. * gcc.target/riscv/rvv/base/vsuxei8_v-2.c: New test. * gcc.target/riscv/rvv/base/vsuxei8_v-3.c: New test. * gcc.target/riscv/rvv/base/vsuxei8_v_m-1.c: New test. * gcc.target/riscv/rvv/base/vsuxei8_v_m-2.c: New test. * gcc.target/riscv/rvv/base/vsuxei8_v_m-3.c: New test. --- .../gcc.target/riscv/rvv/base/vsuxei16_v-1.c | 333 +++++++++++++++++ .../gcc.target/riscv/rvv/base/vsuxei16_v-2.c | 333 +++++++++++++++++ .../gcc.target/riscv/rvv/base/vsuxei16_v-3.c | 333 +++++++++++++++++ .../riscv/rvv/base/vsuxei16_v_m-1.c | 333 +++++++++++++++++ .../riscv/rvv/base/vsuxei16_v_m-2.c | 333 +++++++++++++++++ .../riscv/rvv/base/vsuxei16_v_m-3.c | 333 +++++++++++++++++ .../gcc.target/riscv/rvv/base/vsuxei32_v-1.c | 307 ++++++++++++++++ .../gcc.target/riscv/rvv/base/vsuxei32_v-2.c | 307 ++++++++++++++++ .../gcc.target/riscv/rvv/base/vsuxei32_v-3.c | 307 ++++++++++++++++ .../riscv/rvv/base/vsuxei32_v_m-1.c | 307 ++++++++++++++++ .../riscv/rvv/base/vsuxei32_v_m-2.c | 307 ++++++++++++++++ .../riscv/rvv/base/vsuxei32_v_m-3.c | 307 ++++++++++++++++ .../gcc.target/riscv/rvv/base/vsuxei64_v-1.c | 262 +++++++++++++ .../gcc.target/riscv/rvv/base/vsuxei64_v-2.c | 262 +++++++++++++ .../gcc.target/riscv/rvv/base/vsuxei64_v-3.c | 262 +++++++++++++ .../riscv/rvv/base/vsuxei64_v_m-1.c | 262 +++++++++++++ .../riscv/rvv/base/vsuxei64_v_m-2.c | 262 +++++++++++++ .../riscv/rvv/base/vsuxei64_v_m-3.c | 262 +++++++++++++ .../gcc.target/riscv/rvv/base/vsuxei8_v-1.c | 346 ++++++++++++++++++ .../gcc.target/riscv/rvv/base/vsuxei8_v-2.c | 346 ++++++++++++++++++ .../gcc.target/riscv/rvv/base/vsuxei8_v-3.c | 346 ++++++++++++++++++ .../gcc.target/riscv/rvv/base/vsuxei8_v_m-1.c | 346 ++++++++++++++++++ .../gcc.target/riscv/rvv/base/vsuxei8_v_m-2.c | 346 ++++++++++++++++++ .../gcc.target/riscv/rvv/base/vsuxei8_v_m-3.c | 346 ++++++++++++++++++ 24 files changed, 7488 insertions(+) create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v-1.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v-2.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v-3.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v_m-1.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v_m-2.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v_m-3.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v-1.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v-2.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v-3.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v_m-1.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v_m-2.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v_m-3.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v-1.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v-2.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v-3.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v_m-1.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v_m-2.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v_m-3.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v-1.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v-2.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v-3.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v_m-1.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v_m-2.c create mode 100644 gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v_m-3.c diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v-1.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v-1.c new file mode 100644 index 00000000000..25bd196a913 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v-1.c @@ -0,0 +1,333 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei16_v_i8mf8(int8_t* base,vuint16mf4_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8mf8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i8mf4(int8_t* base,vuint16mf2_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8mf4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i8mf2(int8_t* base,vuint16m1_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i8m1(int8_t* base,vuint16m2_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i8m2(int8_t* base,vuint16m4_t bindex,vint8m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i8m4(int8_t* base,vuint16m8_t bindex,vint8m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i16mf4(int16_t* base,vuint16mf4_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16mf4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i16mf2(int16_t* base,vuint16mf2_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i16m1(int16_t* base,vuint16m1_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i16m2(int16_t* base,vuint16m2_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i16m4(int16_t* base,vuint16m4_t bindex,vint16m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i16m8(int16_t* base,vuint16m8_t bindex,vint16m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i32mf2(int32_t* base,vuint16mf4_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i32m1(int32_t* base,vuint16mf2_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i32m2(int32_t* base,vuint16m1_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i32m4(int32_t* base,vuint16m2_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i32m8(int32_t* base,vuint16m4_t bindex,vint32m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i64m1(int64_t* base,vuint16mf4_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i64m2(int64_t* base,vuint16mf2_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i64m4(int64_t* base,vuint16m1_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i64m8(int64_t* base,vuint16m2_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u8mf8(uint8_t* base,vuint16mf4_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8mf8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u8mf4(uint8_t* base,vuint16mf2_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8mf4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u8mf2(uint8_t* base,vuint16m1_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u8m1(uint8_t* base,vuint16m2_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u8m2(uint8_t* base,vuint16m4_t bindex,vuint8m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u8m4(uint8_t* base,vuint16m8_t bindex,vuint8m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u16mf4(uint16_t* base,vuint16mf4_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16mf4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u16mf2(uint16_t* base,vuint16mf2_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u16m1(uint16_t* base,vuint16m1_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u16m2(uint16_t* base,vuint16m2_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u16m4(uint16_t* base,vuint16m4_t bindex,vuint16m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u16m8(uint16_t* base,vuint16m8_t bindex,vuint16m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u32mf2(uint32_t* base,vuint16mf4_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u32m1(uint32_t* base,vuint16mf2_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u32m2(uint32_t* base,vuint16m1_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u32m4(uint32_t* base,vuint16m2_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u32m8(uint32_t* base,vuint16m4_t bindex,vuint32m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u64m1(uint64_t* base,vuint16mf4_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u64m2(uint64_t* base,vuint16mf2_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u64m4(uint64_t* base,vuint16m1_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u64m8(uint64_t* base,vuint16m2_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_f32mf2(float* base,vuint16mf4_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_f32m1(float* base,vuint16mf2_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_f32m2(float* base,vuint16m1_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_f32m4(float* base,vuint16m2_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_f32m8(float* base,vuint16m4_t bindex,vfloat32m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_f64m1(double* base,vuint16mf4_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_f64m2(double* base,vuint16mf2_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_f64m4(double* base,vuint16m1_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_f64m8(double* base,vuint16m2_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m8(base,bindex,value,vl); +} + + + +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v-2.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v-2.c new file mode 100644 index 00000000000..07772c0e033 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v-2.c @@ -0,0 +1,333 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei16_v_i8mf8(int8_t* base,vuint16mf4_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8mf8(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i8mf4(int8_t* base,vuint16mf2_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8mf4(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i8mf2(int8_t* base,vuint16m1_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i8m1(int8_t* base,vuint16m2_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i8m2(int8_t* base,vuint16m4_t bindex,vint8m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i8m4(int8_t* base,vuint16m8_t bindex,vint8m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i16mf4(int16_t* base,vuint16mf4_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16mf4(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i16mf2(int16_t* base,vuint16mf2_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i16m1(int16_t* base,vuint16m1_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i16m2(int16_t* base,vuint16m2_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i16m4(int16_t* base,vuint16m4_t bindex,vint16m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i16m8(int16_t* base,vuint16m8_t bindex,vint16m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i32mf2(int32_t* base,vuint16mf4_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i32m1(int32_t* base,vuint16mf2_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i32m2(int32_t* base,vuint16m1_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i32m4(int32_t* base,vuint16m2_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i32m8(int32_t* base,vuint16m4_t bindex,vint32m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i64m1(int64_t* base,vuint16mf4_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i64m2(int64_t* base,vuint16mf2_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i64m4(int64_t* base,vuint16m1_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i64m8(int64_t* base,vuint16m2_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u8mf8(uint8_t* base,vuint16mf4_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8mf8(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u8mf4(uint8_t* base,vuint16mf2_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8mf4(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u8mf2(uint8_t* base,vuint16m1_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u8m1(uint8_t* base,vuint16m2_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u8m2(uint8_t* base,vuint16m4_t bindex,vuint8m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u8m4(uint8_t* base,vuint16m8_t bindex,vuint8m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u16mf4(uint16_t* base,vuint16mf4_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16mf4(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u16mf2(uint16_t* base,vuint16mf2_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u16m1(uint16_t* base,vuint16m1_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u16m2(uint16_t* base,vuint16m2_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u16m4(uint16_t* base,vuint16m4_t bindex,vuint16m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u16m8(uint16_t* base,vuint16m8_t bindex,vuint16m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u32mf2(uint32_t* base,vuint16mf4_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u32m1(uint32_t* base,vuint16mf2_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u32m2(uint32_t* base,vuint16m1_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u32m4(uint32_t* base,vuint16m2_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u32m8(uint32_t* base,vuint16m4_t bindex,vuint32m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u64m1(uint64_t* base,vuint16mf4_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u64m2(uint64_t* base,vuint16mf2_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u64m4(uint64_t* base,vuint16m1_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u64m8(uint64_t* base,vuint16m2_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_f32mf2(float* base,vuint16mf4_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_f32m1(float* base,vuint16mf2_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_f32m2(float* base,vuint16m1_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_f32m4(float* base,vuint16m2_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_f32m8(float* base,vuint16m4_t bindex,vfloat32m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_f64m1(double* base,vuint16mf4_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_f64m2(double* base,vuint16mf2_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_f64m4(double* base,vuint16m1_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_f64m8(double* base,vuint16m2_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m8(base,bindex,value,31); +} + + + +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v-3.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v-3.c new file mode 100644 index 00000000000..575f3e7ba22 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v-3.c @@ -0,0 +1,333 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei16_v_i8mf8(int8_t* base,vuint16mf4_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8mf8(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i8mf4(int8_t* base,vuint16mf2_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8mf4(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i8mf2(int8_t* base,vuint16m1_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i8m1(int8_t* base,vuint16m2_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i8m2(int8_t* base,vuint16m4_t bindex,vint8m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i8m4(int8_t* base,vuint16m8_t bindex,vint8m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i16mf4(int16_t* base,vuint16mf4_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16mf4(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i16mf2(int16_t* base,vuint16mf2_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i16m1(int16_t* base,vuint16m1_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i16m2(int16_t* base,vuint16m2_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i16m4(int16_t* base,vuint16m4_t bindex,vint16m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i16m8(int16_t* base,vuint16m8_t bindex,vint16m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i32mf2(int32_t* base,vuint16mf4_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i32m1(int32_t* base,vuint16mf2_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i32m2(int32_t* base,vuint16m1_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i32m4(int32_t* base,vuint16m2_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i32m8(int32_t* base,vuint16m4_t bindex,vint32m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i64m1(int64_t* base,vuint16mf4_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i64m2(int64_t* base,vuint16mf2_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i64m4(int64_t* base,vuint16m1_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i64m8(int64_t* base,vuint16m2_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u8mf8(uint8_t* base,vuint16mf4_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8mf8(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u8mf4(uint8_t* base,vuint16mf2_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8mf4(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u8mf2(uint8_t* base,vuint16m1_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u8m1(uint8_t* base,vuint16m2_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u8m2(uint8_t* base,vuint16m4_t bindex,vuint8m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u8m4(uint8_t* base,vuint16m8_t bindex,vuint8m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u16mf4(uint16_t* base,vuint16mf4_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16mf4(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u16mf2(uint16_t* base,vuint16mf2_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u16m1(uint16_t* base,vuint16m1_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u16m2(uint16_t* base,vuint16m2_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u16m4(uint16_t* base,vuint16m4_t bindex,vuint16m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u16m8(uint16_t* base,vuint16m8_t bindex,vuint16m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u32mf2(uint32_t* base,vuint16mf4_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u32m1(uint32_t* base,vuint16mf2_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u32m2(uint32_t* base,vuint16m1_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u32m4(uint32_t* base,vuint16m2_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u32m8(uint32_t* base,vuint16m4_t bindex,vuint32m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u64m1(uint64_t* base,vuint16mf4_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u64m2(uint64_t* base,vuint16mf2_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u64m4(uint64_t* base,vuint16m1_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u64m8(uint64_t* base,vuint16m2_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_f32mf2(float* base,vuint16mf4_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_f32m1(float* base,vuint16mf2_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_f32m2(float* base,vuint16m1_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_f32m4(float* base,vuint16m2_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_f32m8(float* base,vuint16m4_t bindex,vfloat32m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_f64m1(double* base,vuint16mf4_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_f64m2(double* base,vuint16mf2_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_f64m4(double* base,vuint16m1_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_f64m8(double* base,vuint16m2_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m8(base,bindex,value,32); +} + + + +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v_m-1.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v_m-1.c new file mode 100644 index 00000000000..b72731227fd --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v_m-1.c @@ -0,0 +1,333 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei16_v_i8mf8_m(vbool64_t mask,int8_t* base,vuint16mf4_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8mf8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i8mf4_m(vbool32_t mask,int8_t* base,vuint16mf2_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8mf4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i8mf2_m(vbool16_t mask,int8_t* base,vuint16m1_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i8m1_m(vbool8_t mask,int8_t* base,vuint16m2_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i8m2_m(vbool4_t mask,int8_t* base,vuint16m4_t bindex,vint8m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i8m4_m(vbool2_t mask,int8_t* base,vuint16m8_t bindex,vint8m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i16mf4_m(vbool64_t mask,int16_t* base,vuint16mf4_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16mf4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i16mf2_m(vbool32_t mask,int16_t* base,vuint16mf2_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i16m1_m(vbool16_t mask,int16_t* base,vuint16m1_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i16m2_m(vbool8_t mask,int16_t* base,vuint16m2_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i16m4_m(vbool4_t mask,int16_t* base,vuint16m4_t bindex,vint16m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i16m8_m(vbool2_t mask,int16_t* base,vuint16m8_t bindex,vint16m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i32mf2_m(vbool64_t mask,int32_t* base,vuint16mf4_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i32m1_m(vbool32_t mask,int32_t* base,vuint16mf2_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i32m2_m(vbool16_t mask,int32_t* base,vuint16m1_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i32m4_m(vbool8_t mask,int32_t* base,vuint16m2_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i32m8_m(vbool4_t mask,int32_t* base,vuint16m4_t bindex,vint32m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i64m1_m(vbool64_t mask,int64_t* base,vuint16mf4_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i64m2_m(vbool32_t mask,int64_t* base,vuint16mf2_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i64m4_m(vbool16_t mask,int64_t* base,vuint16m1_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_i64m8_m(vbool8_t mask,int64_t* base,vuint16m2_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u8mf8_m(vbool64_t mask,uint8_t* base,vuint16mf4_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8mf8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u8mf4_m(vbool32_t mask,uint8_t* base,vuint16mf2_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8mf4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u8mf2_m(vbool16_t mask,uint8_t* base,vuint16m1_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u8m1_m(vbool8_t mask,uint8_t* base,vuint16m2_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u8m2_m(vbool4_t mask,uint8_t* base,vuint16m4_t bindex,vuint8m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u8m4_m(vbool2_t mask,uint8_t* base,vuint16m8_t bindex,vuint8m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u16mf4_m(vbool64_t mask,uint16_t* base,vuint16mf4_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16mf4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u16mf2_m(vbool32_t mask,uint16_t* base,vuint16mf2_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u16m1_m(vbool16_t mask,uint16_t* base,vuint16m1_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u16m2_m(vbool8_t mask,uint16_t* base,vuint16m2_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u16m4_m(vbool4_t mask,uint16_t* base,vuint16m4_t bindex,vuint16m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u16m8_m(vbool2_t mask,uint16_t* base,vuint16m8_t bindex,vuint16m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u32mf2_m(vbool64_t mask,uint32_t* base,vuint16mf4_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u32m1_m(vbool32_t mask,uint32_t* base,vuint16mf2_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u32m2_m(vbool16_t mask,uint32_t* base,vuint16m1_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u32m4_m(vbool8_t mask,uint32_t* base,vuint16m2_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u32m8_m(vbool4_t mask,uint32_t* base,vuint16m4_t bindex,vuint32m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u64m1_m(vbool64_t mask,uint64_t* base,vuint16mf4_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u64m2_m(vbool32_t mask,uint64_t* base,vuint16mf2_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u64m4_m(vbool16_t mask,uint64_t* base,vuint16m1_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_u64m8_m(vbool8_t mask,uint64_t* base,vuint16m2_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_f32mf2_m(vbool64_t mask,float* base,vuint16mf4_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_f32m1_m(vbool32_t mask,float* base,vuint16mf2_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_f32m2_m(vbool16_t mask,float* base,vuint16m1_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_f32m4_m(vbool8_t mask,float* base,vuint16m2_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_f32m8_m(vbool4_t mask,float* base,vuint16m4_t bindex,vfloat32m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_f64m1_m(vbool64_t mask,double* base,vuint16mf4_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_f64m2_m(vbool32_t mask,double* base,vuint16mf2_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_f64m4_m(vbool16_t mask,double* base,vuint16m1_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei16_v_f64m8_m(vbool8_t mask,double* base,vuint16m2_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m8_m(mask,base,bindex,value,vl); +} + + + +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v_m-2.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v_m-2.c new file mode 100644 index 00000000000..53d506aa7c4 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v_m-2.c @@ -0,0 +1,333 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei16_v_i8mf8_m(vbool64_t mask,int8_t* base,vuint16mf4_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8mf8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i8mf4_m(vbool32_t mask,int8_t* base,vuint16mf2_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8mf4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i8mf2_m(vbool16_t mask,int8_t* base,vuint16m1_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i8m1_m(vbool8_t mask,int8_t* base,vuint16m2_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i8m2_m(vbool4_t mask,int8_t* base,vuint16m4_t bindex,vint8m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i8m4_m(vbool2_t mask,int8_t* base,vuint16m8_t bindex,vint8m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i16mf4_m(vbool64_t mask,int16_t* base,vuint16mf4_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16mf4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i16mf2_m(vbool32_t mask,int16_t* base,vuint16mf2_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i16m1_m(vbool16_t mask,int16_t* base,vuint16m1_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i16m2_m(vbool8_t mask,int16_t* base,vuint16m2_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i16m4_m(vbool4_t mask,int16_t* base,vuint16m4_t bindex,vint16m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i16m8_m(vbool2_t mask,int16_t* base,vuint16m8_t bindex,vint16m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i32mf2_m(vbool64_t mask,int32_t* base,vuint16mf4_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i32m1_m(vbool32_t mask,int32_t* base,vuint16mf2_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i32m2_m(vbool16_t mask,int32_t* base,vuint16m1_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i32m4_m(vbool8_t mask,int32_t* base,vuint16m2_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i32m8_m(vbool4_t mask,int32_t* base,vuint16m4_t bindex,vint32m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i64m1_m(vbool64_t mask,int64_t* base,vuint16mf4_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i64m2_m(vbool32_t mask,int64_t* base,vuint16mf2_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i64m4_m(vbool16_t mask,int64_t* base,vuint16m1_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_i64m8_m(vbool8_t mask,int64_t* base,vuint16m2_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u8mf8_m(vbool64_t mask,uint8_t* base,vuint16mf4_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8mf8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u8mf4_m(vbool32_t mask,uint8_t* base,vuint16mf2_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8mf4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u8mf2_m(vbool16_t mask,uint8_t* base,vuint16m1_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u8m1_m(vbool8_t mask,uint8_t* base,vuint16m2_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u8m2_m(vbool4_t mask,uint8_t* base,vuint16m4_t bindex,vuint8m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u8m4_m(vbool2_t mask,uint8_t* base,vuint16m8_t bindex,vuint8m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u16mf4_m(vbool64_t mask,uint16_t* base,vuint16mf4_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16mf4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u16mf2_m(vbool32_t mask,uint16_t* base,vuint16mf2_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u16m1_m(vbool16_t mask,uint16_t* base,vuint16m1_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u16m2_m(vbool8_t mask,uint16_t* base,vuint16m2_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u16m4_m(vbool4_t mask,uint16_t* base,vuint16m4_t bindex,vuint16m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u16m8_m(vbool2_t mask,uint16_t* base,vuint16m8_t bindex,vuint16m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u32mf2_m(vbool64_t mask,uint32_t* base,vuint16mf4_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u32m1_m(vbool32_t mask,uint32_t* base,vuint16mf2_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u32m2_m(vbool16_t mask,uint32_t* base,vuint16m1_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u32m4_m(vbool8_t mask,uint32_t* base,vuint16m2_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u32m8_m(vbool4_t mask,uint32_t* base,vuint16m4_t bindex,vuint32m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u64m1_m(vbool64_t mask,uint64_t* base,vuint16mf4_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u64m2_m(vbool32_t mask,uint64_t* base,vuint16mf2_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u64m4_m(vbool16_t mask,uint64_t* base,vuint16m1_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_u64m8_m(vbool8_t mask,uint64_t* base,vuint16m2_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_f32mf2_m(vbool64_t mask,float* base,vuint16mf4_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_f32m1_m(vbool32_t mask,float* base,vuint16mf2_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_f32m2_m(vbool16_t mask,float* base,vuint16m1_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_f32m4_m(vbool8_t mask,float* base,vuint16m2_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_f32m8_m(vbool4_t mask,float* base,vuint16m4_t bindex,vfloat32m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_f64m1_m(vbool64_t mask,double* base,vuint16mf4_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_f64m2_m(vbool32_t mask,double* base,vuint16mf2_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_f64m4_m(vbool16_t mask,double* base,vuint16m1_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei16_v_f64m8_m(vbool8_t mask,double* base,vuint16m2_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m8_m(mask,base,bindex,value,31); +} + + + +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v_m-3.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v_m-3.c new file mode 100644 index 00000000000..54e5c59e87f --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei16_v_m-3.c @@ -0,0 +1,333 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei16_v_i8mf8_m(vbool64_t mask,int8_t* base,vuint16mf4_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8mf8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i8mf4_m(vbool32_t mask,int8_t* base,vuint16mf2_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8mf4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i8mf2_m(vbool16_t mask,int8_t* base,vuint16m1_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i8m1_m(vbool8_t mask,int8_t* base,vuint16m2_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i8m2_m(vbool4_t mask,int8_t* base,vuint16m4_t bindex,vint8m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i8m4_m(vbool2_t mask,int8_t* base,vuint16m8_t bindex,vint8m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i8m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i16mf4_m(vbool64_t mask,int16_t* base,vuint16mf4_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16mf4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i16mf2_m(vbool32_t mask,int16_t* base,vuint16mf2_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i16m1_m(vbool16_t mask,int16_t* base,vuint16m1_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i16m2_m(vbool8_t mask,int16_t* base,vuint16m2_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i16m4_m(vbool4_t mask,int16_t* base,vuint16m4_t bindex,vint16m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i16m8_m(vbool2_t mask,int16_t* base,vuint16m8_t bindex,vint16m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i16m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i32mf2_m(vbool64_t mask,int32_t* base,vuint16mf4_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i32m1_m(vbool32_t mask,int32_t* base,vuint16mf2_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i32m2_m(vbool16_t mask,int32_t* base,vuint16m1_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i32m4_m(vbool8_t mask,int32_t* base,vuint16m2_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i32m8_m(vbool4_t mask,int32_t* base,vuint16m4_t bindex,vint32m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i32m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i64m1_m(vbool64_t mask,int64_t* base,vuint16mf4_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i64m2_m(vbool32_t mask,int64_t* base,vuint16mf2_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i64m4_m(vbool16_t mask,int64_t* base,vuint16m1_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_i64m8_m(vbool8_t mask,int64_t* base,vuint16m2_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_i64m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u8mf8_m(vbool64_t mask,uint8_t* base,vuint16mf4_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8mf8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u8mf4_m(vbool32_t mask,uint8_t* base,vuint16mf2_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8mf4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u8mf2_m(vbool16_t mask,uint8_t* base,vuint16m1_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u8m1_m(vbool8_t mask,uint8_t* base,vuint16m2_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u8m2_m(vbool4_t mask,uint8_t* base,vuint16m4_t bindex,vuint8m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u8m4_m(vbool2_t mask,uint8_t* base,vuint16m8_t bindex,vuint8m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u8m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u16mf4_m(vbool64_t mask,uint16_t* base,vuint16mf4_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16mf4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u16mf2_m(vbool32_t mask,uint16_t* base,vuint16mf2_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u16m1_m(vbool16_t mask,uint16_t* base,vuint16m1_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u16m2_m(vbool8_t mask,uint16_t* base,vuint16m2_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u16m4_m(vbool4_t mask,uint16_t* base,vuint16m4_t bindex,vuint16m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u16m8_m(vbool2_t mask,uint16_t* base,vuint16m8_t bindex,vuint16m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u16m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u32mf2_m(vbool64_t mask,uint32_t* base,vuint16mf4_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u32m1_m(vbool32_t mask,uint32_t* base,vuint16mf2_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u32m2_m(vbool16_t mask,uint32_t* base,vuint16m1_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u32m4_m(vbool8_t mask,uint32_t* base,vuint16m2_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u32m8_m(vbool4_t mask,uint32_t* base,vuint16m4_t bindex,vuint32m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u32m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u64m1_m(vbool64_t mask,uint64_t* base,vuint16mf4_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u64m2_m(vbool32_t mask,uint64_t* base,vuint16mf2_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u64m4_m(vbool16_t mask,uint64_t* base,vuint16m1_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_u64m8_m(vbool8_t mask,uint64_t* base,vuint16m2_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_u64m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_f32mf2_m(vbool64_t mask,float* base,vuint16mf4_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_f32m1_m(vbool32_t mask,float* base,vuint16mf2_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_f32m2_m(vbool16_t mask,float* base,vuint16m1_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_f32m4_m(vbool8_t mask,float* base,vuint16m2_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_f32m8_m(vbool4_t mask,float* base,vuint16m4_t bindex,vfloat32m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_f32m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_f64m1_m(vbool64_t mask,double* base,vuint16mf4_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_f64m2_m(vbool32_t mask,double* base,vuint16mf2_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_f64m4_m(vbool16_t mask,double* base,vuint16m1_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei16_v_f64m8_m(vbool8_t mask,double* base,vuint16m2_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei16_v_f64m8_m(mask,base,bindex,value,32); +} + + + +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei16\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v-1.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v-1.c new file mode 100644 index 00000000000..269c5a686b7 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v-1.c @@ -0,0 +1,307 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei32_v_i8mf8(int8_t* base,vuint32mf2_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8mf8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i8mf4(int8_t* base,vuint32m1_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8mf4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i8mf2(int8_t* base,vuint32m2_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i8m1(int8_t* base,vuint32m4_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i8m2(int8_t* base,vuint32m8_t bindex,vint8m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i16mf4(int16_t* base,vuint32mf2_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16mf4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i16mf2(int16_t* base,vuint32m1_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i16m1(int16_t* base,vuint32m2_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i16m2(int16_t* base,vuint32m4_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i16m4(int16_t* base,vuint32m8_t bindex,vint16m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i32mf2(int32_t* base,vuint32mf2_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i32m1(int32_t* base,vuint32m1_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i32m2(int32_t* base,vuint32m2_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i32m4(int32_t* base,vuint32m4_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i32m8(int32_t* base,vuint32m8_t bindex,vint32m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i64m1(int64_t* base,vuint32mf2_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i64m2(int64_t* base,vuint32m1_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i64m4(int64_t* base,vuint32m2_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i64m8(int64_t* base,vuint32m4_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u8mf8(uint8_t* base,vuint32mf2_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8mf8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u8mf4(uint8_t* base,vuint32m1_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8mf4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u8mf2(uint8_t* base,vuint32m2_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u8m1(uint8_t* base,vuint32m4_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u8m2(uint8_t* base,vuint32m8_t bindex,vuint8m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u16mf4(uint16_t* base,vuint32mf2_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16mf4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u16mf2(uint16_t* base,vuint32m1_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u16m1(uint16_t* base,vuint32m2_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u16m2(uint16_t* base,vuint32m4_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u16m4(uint16_t* base,vuint32m8_t bindex,vuint16m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u32mf2(uint32_t* base,vuint32mf2_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u32m1(uint32_t* base,vuint32m1_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u32m2(uint32_t* base,vuint32m2_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u32m4(uint32_t* base,vuint32m4_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u32m8(uint32_t* base,vuint32m8_t bindex,vuint32m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u64m1(uint64_t* base,vuint32mf2_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u64m2(uint64_t* base,vuint32m1_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u64m4(uint64_t* base,vuint32m2_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u64m8(uint64_t* base,vuint32m4_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_f32mf2(float* base,vuint32mf2_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_f32m1(float* base,vuint32m1_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_f32m2(float* base,vuint32m2_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_f32m4(float* base,vuint32m4_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_f32m8(float* base,vuint32m8_t bindex,vfloat32m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_f64m1(double* base,vuint32mf2_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_f64m2(double* base,vuint32m1_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_f64m4(double* base,vuint32m2_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_f64m8(double* base,vuint32m4_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m8(base,bindex,value,vl); +} + + + +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m8,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v-2.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v-2.c new file mode 100644 index 00000000000..eae7dd8ced0 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v-2.c @@ -0,0 +1,307 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei32_v_i8mf8(int8_t* base,vuint32mf2_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8mf8(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i8mf4(int8_t* base,vuint32m1_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8mf4(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i8mf2(int8_t* base,vuint32m2_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i8m1(int8_t* base,vuint32m4_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i8m2(int8_t* base,vuint32m8_t bindex,vint8m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i16mf4(int16_t* base,vuint32mf2_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16mf4(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i16mf2(int16_t* base,vuint32m1_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i16m1(int16_t* base,vuint32m2_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i16m2(int16_t* base,vuint32m4_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i16m4(int16_t* base,vuint32m8_t bindex,vint16m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i32mf2(int32_t* base,vuint32mf2_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i32m1(int32_t* base,vuint32m1_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i32m2(int32_t* base,vuint32m2_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i32m4(int32_t* base,vuint32m4_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i32m8(int32_t* base,vuint32m8_t bindex,vint32m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i64m1(int64_t* base,vuint32mf2_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i64m2(int64_t* base,vuint32m1_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i64m4(int64_t* base,vuint32m2_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i64m8(int64_t* base,vuint32m4_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u8mf8(uint8_t* base,vuint32mf2_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8mf8(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u8mf4(uint8_t* base,vuint32m1_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8mf4(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u8mf2(uint8_t* base,vuint32m2_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u8m1(uint8_t* base,vuint32m4_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u8m2(uint8_t* base,vuint32m8_t bindex,vuint8m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u16mf4(uint16_t* base,vuint32mf2_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16mf4(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u16mf2(uint16_t* base,vuint32m1_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u16m1(uint16_t* base,vuint32m2_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u16m2(uint16_t* base,vuint32m4_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u16m4(uint16_t* base,vuint32m8_t bindex,vuint16m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u32mf2(uint32_t* base,vuint32mf2_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u32m1(uint32_t* base,vuint32m1_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u32m2(uint32_t* base,vuint32m2_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u32m4(uint32_t* base,vuint32m4_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u32m8(uint32_t* base,vuint32m8_t bindex,vuint32m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u64m1(uint64_t* base,vuint32mf2_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u64m2(uint64_t* base,vuint32m1_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u64m4(uint64_t* base,vuint32m2_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u64m8(uint64_t* base,vuint32m4_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_f32mf2(float* base,vuint32mf2_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_f32m1(float* base,vuint32m1_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_f32m2(float* base,vuint32m2_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_f32m4(float* base,vuint32m4_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_f32m8(float* base,vuint32m8_t bindex,vfloat32m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_f64m1(double* base,vuint32mf2_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_f64m2(double* base,vuint32m1_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_f64m4(double* base,vuint32m2_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_f64m8(double* base,vuint32m4_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m8(base,bindex,value,31); +} + + + +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m8,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v-3.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v-3.c new file mode 100644 index 00000000000..89a73770ea2 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v-3.c @@ -0,0 +1,307 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei32_v_i8mf8(int8_t* base,vuint32mf2_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8mf8(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i8mf4(int8_t* base,vuint32m1_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8mf4(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i8mf2(int8_t* base,vuint32m2_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i8m1(int8_t* base,vuint32m4_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i8m2(int8_t* base,vuint32m8_t bindex,vint8m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i16mf4(int16_t* base,vuint32mf2_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16mf4(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i16mf2(int16_t* base,vuint32m1_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i16m1(int16_t* base,vuint32m2_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i16m2(int16_t* base,vuint32m4_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i16m4(int16_t* base,vuint32m8_t bindex,vint16m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i32mf2(int32_t* base,vuint32mf2_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i32m1(int32_t* base,vuint32m1_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i32m2(int32_t* base,vuint32m2_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i32m4(int32_t* base,vuint32m4_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i32m8(int32_t* base,vuint32m8_t bindex,vint32m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i64m1(int64_t* base,vuint32mf2_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i64m2(int64_t* base,vuint32m1_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i64m4(int64_t* base,vuint32m2_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i64m8(int64_t* base,vuint32m4_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u8mf8(uint8_t* base,vuint32mf2_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8mf8(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u8mf4(uint8_t* base,vuint32m1_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8mf4(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u8mf2(uint8_t* base,vuint32m2_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u8m1(uint8_t* base,vuint32m4_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u8m2(uint8_t* base,vuint32m8_t bindex,vuint8m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u16mf4(uint16_t* base,vuint32mf2_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16mf4(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u16mf2(uint16_t* base,vuint32m1_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u16m1(uint16_t* base,vuint32m2_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u16m2(uint16_t* base,vuint32m4_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u16m4(uint16_t* base,vuint32m8_t bindex,vuint16m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u32mf2(uint32_t* base,vuint32mf2_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u32m1(uint32_t* base,vuint32m1_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u32m2(uint32_t* base,vuint32m2_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u32m4(uint32_t* base,vuint32m4_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u32m8(uint32_t* base,vuint32m8_t bindex,vuint32m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u64m1(uint64_t* base,vuint32mf2_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u64m2(uint64_t* base,vuint32m1_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u64m4(uint64_t* base,vuint32m2_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u64m8(uint64_t* base,vuint32m4_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_f32mf2(float* base,vuint32mf2_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_f32m1(float* base,vuint32m1_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_f32m2(float* base,vuint32m2_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_f32m4(float* base,vuint32m4_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_f32m8(float* base,vuint32m8_t bindex,vfloat32m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_f64m1(double* base,vuint32mf2_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_f64m2(double* base,vuint32m1_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_f64m4(double* base,vuint32m2_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_f64m8(double* base,vuint32m4_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m8(base,bindex,value,32); +} + + + +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m8,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v_m-1.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v_m-1.c new file mode 100644 index 00000000000..0fb40241e32 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v_m-1.c @@ -0,0 +1,307 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei32_v_i8mf8_m(vbool64_t mask,int8_t* base,vuint32mf2_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8mf8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i8mf4_m(vbool32_t mask,int8_t* base,vuint32m1_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8mf4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i8mf2_m(vbool16_t mask,int8_t* base,vuint32m2_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i8m1_m(vbool8_t mask,int8_t* base,vuint32m4_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i8m2_m(vbool4_t mask,int8_t* base,vuint32m8_t bindex,vint8m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i16mf4_m(vbool64_t mask,int16_t* base,vuint32mf2_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16mf4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i16mf2_m(vbool32_t mask,int16_t* base,vuint32m1_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i16m1_m(vbool16_t mask,int16_t* base,vuint32m2_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i16m2_m(vbool8_t mask,int16_t* base,vuint32m4_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i16m4_m(vbool4_t mask,int16_t* base,vuint32m8_t bindex,vint16m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i32mf2_m(vbool64_t mask,int32_t* base,vuint32mf2_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i32m1_m(vbool32_t mask,int32_t* base,vuint32m1_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i32m2_m(vbool16_t mask,int32_t* base,vuint32m2_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i32m4_m(vbool8_t mask,int32_t* base,vuint32m4_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i32m8_m(vbool4_t mask,int32_t* base,vuint32m8_t bindex,vint32m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i64m1_m(vbool64_t mask,int64_t* base,vuint32mf2_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i64m2_m(vbool32_t mask,int64_t* base,vuint32m1_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i64m4_m(vbool16_t mask,int64_t* base,vuint32m2_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_i64m8_m(vbool8_t mask,int64_t* base,vuint32m4_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u8mf8_m(vbool64_t mask,uint8_t* base,vuint32mf2_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8mf8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u8mf4_m(vbool32_t mask,uint8_t* base,vuint32m1_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8mf4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u8mf2_m(vbool16_t mask,uint8_t* base,vuint32m2_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u8m1_m(vbool8_t mask,uint8_t* base,vuint32m4_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u8m2_m(vbool4_t mask,uint8_t* base,vuint32m8_t bindex,vuint8m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u16mf4_m(vbool64_t mask,uint16_t* base,vuint32mf2_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16mf4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u16mf2_m(vbool32_t mask,uint16_t* base,vuint32m1_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u16m1_m(vbool16_t mask,uint16_t* base,vuint32m2_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u16m2_m(vbool8_t mask,uint16_t* base,vuint32m4_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u16m4_m(vbool4_t mask,uint16_t* base,vuint32m8_t bindex,vuint16m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u32mf2_m(vbool64_t mask,uint32_t* base,vuint32mf2_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u32m1_m(vbool32_t mask,uint32_t* base,vuint32m1_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u32m2_m(vbool16_t mask,uint32_t* base,vuint32m2_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u32m4_m(vbool8_t mask,uint32_t* base,vuint32m4_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u32m8_m(vbool4_t mask,uint32_t* base,vuint32m8_t bindex,vuint32m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u64m1_m(vbool64_t mask,uint64_t* base,vuint32mf2_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u64m2_m(vbool32_t mask,uint64_t* base,vuint32m1_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u64m4_m(vbool16_t mask,uint64_t* base,vuint32m2_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_u64m8_m(vbool8_t mask,uint64_t* base,vuint32m4_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_f32mf2_m(vbool64_t mask,float* base,vuint32mf2_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_f32m1_m(vbool32_t mask,float* base,vuint32m1_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_f32m2_m(vbool16_t mask,float* base,vuint32m2_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_f32m4_m(vbool8_t mask,float* base,vuint32m4_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_f32m8_m(vbool4_t mask,float* base,vuint32m8_t bindex,vfloat32m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_f64m1_m(vbool64_t mask,double* base,vuint32mf2_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_f64m2_m(vbool32_t mask,double* base,vuint32m1_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_f64m4_m(vbool16_t mask,double* base,vuint32m2_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei32_v_f64m8_m(vbool8_t mask,double* base,vuint32m4_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m8_m(mask,base,bindex,value,vl); +} + + + +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m8,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v_m-2.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v_m-2.c new file mode 100644 index 00000000000..d7c0c93a4bb --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v_m-2.c @@ -0,0 +1,307 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei32_v_i8mf8_m(vbool64_t mask,int8_t* base,vuint32mf2_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8mf8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i8mf4_m(vbool32_t mask,int8_t* base,vuint32m1_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8mf4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i8mf2_m(vbool16_t mask,int8_t* base,vuint32m2_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i8m1_m(vbool8_t mask,int8_t* base,vuint32m4_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i8m2_m(vbool4_t mask,int8_t* base,vuint32m8_t bindex,vint8m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i16mf4_m(vbool64_t mask,int16_t* base,vuint32mf2_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16mf4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i16mf2_m(vbool32_t mask,int16_t* base,vuint32m1_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i16m1_m(vbool16_t mask,int16_t* base,vuint32m2_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i16m2_m(vbool8_t mask,int16_t* base,vuint32m4_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i16m4_m(vbool4_t mask,int16_t* base,vuint32m8_t bindex,vint16m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i32mf2_m(vbool64_t mask,int32_t* base,vuint32mf2_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i32m1_m(vbool32_t mask,int32_t* base,vuint32m1_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i32m2_m(vbool16_t mask,int32_t* base,vuint32m2_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i32m4_m(vbool8_t mask,int32_t* base,vuint32m4_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i32m8_m(vbool4_t mask,int32_t* base,vuint32m8_t bindex,vint32m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i64m1_m(vbool64_t mask,int64_t* base,vuint32mf2_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i64m2_m(vbool32_t mask,int64_t* base,vuint32m1_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i64m4_m(vbool16_t mask,int64_t* base,vuint32m2_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_i64m8_m(vbool8_t mask,int64_t* base,vuint32m4_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u8mf8_m(vbool64_t mask,uint8_t* base,vuint32mf2_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8mf8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u8mf4_m(vbool32_t mask,uint8_t* base,vuint32m1_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8mf4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u8mf2_m(vbool16_t mask,uint8_t* base,vuint32m2_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u8m1_m(vbool8_t mask,uint8_t* base,vuint32m4_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u8m2_m(vbool4_t mask,uint8_t* base,vuint32m8_t bindex,vuint8m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u16mf4_m(vbool64_t mask,uint16_t* base,vuint32mf2_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16mf4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u16mf2_m(vbool32_t mask,uint16_t* base,vuint32m1_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u16m1_m(vbool16_t mask,uint16_t* base,vuint32m2_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u16m2_m(vbool8_t mask,uint16_t* base,vuint32m4_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u16m4_m(vbool4_t mask,uint16_t* base,vuint32m8_t bindex,vuint16m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u32mf2_m(vbool64_t mask,uint32_t* base,vuint32mf2_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u32m1_m(vbool32_t mask,uint32_t* base,vuint32m1_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u32m2_m(vbool16_t mask,uint32_t* base,vuint32m2_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u32m4_m(vbool8_t mask,uint32_t* base,vuint32m4_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u32m8_m(vbool4_t mask,uint32_t* base,vuint32m8_t bindex,vuint32m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u64m1_m(vbool64_t mask,uint64_t* base,vuint32mf2_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u64m2_m(vbool32_t mask,uint64_t* base,vuint32m1_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u64m4_m(vbool16_t mask,uint64_t* base,vuint32m2_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_u64m8_m(vbool8_t mask,uint64_t* base,vuint32m4_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_f32mf2_m(vbool64_t mask,float* base,vuint32mf2_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_f32m1_m(vbool32_t mask,float* base,vuint32m1_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_f32m2_m(vbool16_t mask,float* base,vuint32m2_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_f32m4_m(vbool8_t mask,float* base,vuint32m4_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_f32m8_m(vbool4_t mask,float* base,vuint32m8_t bindex,vfloat32m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_f64m1_m(vbool64_t mask,double* base,vuint32mf2_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_f64m2_m(vbool32_t mask,double* base,vuint32m1_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_f64m4_m(vbool16_t mask,double* base,vuint32m2_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei32_v_f64m8_m(vbool8_t mask,double* base,vuint32m4_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m8_m(mask,base,bindex,value,31); +} + + + +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m8,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v_m-3.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v_m-3.c new file mode 100644 index 00000000000..4bf1210b45b --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei32_v_m-3.c @@ -0,0 +1,307 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei32_v_i8mf8_m(vbool64_t mask,int8_t* base,vuint32mf2_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8mf8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i8mf4_m(vbool32_t mask,int8_t* base,vuint32m1_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8mf4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i8mf2_m(vbool16_t mask,int8_t* base,vuint32m2_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i8m1_m(vbool8_t mask,int8_t* base,vuint32m4_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i8m2_m(vbool4_t mask,int8_t* base,vuint32m8_t bindex,vint8m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i8m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i16mf4_m(vbool64_t mask,int16_t* base,vuint32mf2_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16mf4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i16mf2_m(vbool32_t mask,int16_t* base,vuint32m1_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i16m1_m(vbool16_t mask,int16_t* base,vuint32m2_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i16m2_m(vbool8_t mask,int16_t* base,vuint32m4_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i16m4_m(vbool4_t mask,int16_t* base,vuint32m8_t bindex,vint16m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i16m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i32mf2_m(vbool64_t mask,int32_t* base,vuint32mf2_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i32m1_m(vbool32_t mask,int32_t* base,vuint32m1_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i32m2_m(vbool16_t mask,int32_t* base,vuint32m2_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i32m4_m(vbool8_t mask,int32_t* base,vuint32m4_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i32m8_m(vbool4_t mask,int32_t* base,vuint32m8_t bindex,vint32m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_i32m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i64m1_m(vbool64_t mask,int64_t* base,vuint32mf2_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i64m2_m(vbool32_t mask,int64_t* base,vuint32m1_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i64m4_m(vbool16_t mask,int64_t* base,vuint32m2_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_i64m8_m(vbool8_t mask,int64_t* base,vuint32m4_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_i64m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u8mf8_m(vbool64_t mask,uint8_t* base,vuint32mf2_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8mf8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u8mf4_m(vbool32_t mask,uint8_t* base,vuint32m1_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8mf4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u8mf2_m(vbool16_t mask,uint8_t* base,vuint32m2_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u8m1_m(vbool8_t mask,uint8_t* base,vuint32m4_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u8m2_m(vbool4_t mask,uint8_t* base,vuint32m8_t bindex,vuint8m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u8m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u16mf4_m(vbool64_t mask,uint16_t* base,vuint32mf2_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16mf4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u16mf2_m(vbool32_t mask,uint16_t* base,vuint32m1_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u16m1_m(vbool16_t mask,uint16_t* base,vuint32m2_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u16m2_m(vbool8_t mask,uint16_t* base,vuint32m4_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u16m4_m(vbool4_t mask,uint16_t* base,vuint32m8_t bindex,vuint16m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u16m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u32mf2_m(vbool64_t mask,uint32_t* base,vuint32mf2_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u32m1_m(vbool32_t mask,uint32_t* base,vuint32m1_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u32m2_m(vbool16_t mask,uint32_t* base,vuint32m2_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u32m4_m(vbool8_t mask,uint32_t* base,vuint32m4_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u32m8_m(vbool4_t mask,uint32_t* base,vuint32m8_t bindex,vuint32m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_u32m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u64m1_m(vbool64_t mask,uint64_t* base,vuint32mf2_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u64m2_m(vbool32_t mask,uint64_t* base,vuint32m1_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u64m4_m(vbool16_t mask,uint64_t* base,vuint32m2_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_u64m8_m(vbool8_t mask,uint64_t* base,vuint32m4_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_u64m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_f32mf2_m(vbool64_t mask,float* base,vuint32mf2_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_f32m1_m(vbool32_t mask,float* base,vuint32m1_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_f32m2_m(vbool16_t mask,float* base,vuint32m2_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_f32m4_m(vbool8_t mask,float* base,vuint32m4_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_f32m8_m(vbool4_t mask,float* base,vuint32m8_t bindex,vfloat32m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_f32m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_f64m1_m(vbool64_t mask,double* base,vuint32mf2_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_f64m2_m(vbool32_t mask,double* base,vuint32m1_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_f64m4_m(vbool16_t mask,double* base,vuint32m2_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei32_v_f64m8_m(vbool8_t mask,double* base,vuint32m4_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei32_v_f64m8_m(mask,base,bindex,value,32); +} + + + +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m8,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei32\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v-1.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v-1.c new file mode 100644 index 00000000000..c1bbc3b7267 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v-1.c @@ -0,0 +1,262 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei64_v_i8mf8(int8_t* base,vuint64m1_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8mf8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i8mf4(int8_t* base,vuint64m2_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8mf4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i8mf2(int8_t* base,vuint64m4_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i8m1(int8_t* base,vuint64m8_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i16mf4(int16_t* base,vuint64m1_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16mf4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i16mf2(int16_t* base,vuint64m2_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i16m1(int16_t* base,vuint64m4_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i16m2(int16_t* base,vuint64m8_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i32mf2(int32_t* base,vuint64m1_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i32m1(int32_t* base,vuint64m2_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i32m2(int32_t* base,vuint64m4_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i32m4(int32_t* base,vuint64m8_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i64m1(int64_t* base,vuint64m1_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i64m2(int64_t* base,vuint64m2_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i64m4(int64_t* base,vuint64m4_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i64m8(int64_t* base,vuint64m8_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u8mf8(uint8_t* base,vuint64m1_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8mf8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u8mf4(uint8_t* base,vuint64m2_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8mf4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u8mf2(uint8_t* base,vuint64m4_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u8m1(uint8_t* base,vuint64m8_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u16mf4(uint16_t* base,vuint64m1_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16mf4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u16mf2(uint16_t* base,vuint64m2_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u16m1(uint16_t* base,vuint64m4_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u16m2(uint16_t* base,vuint64m8_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u32mf2(uint32_t* base,vuint64m1_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u32m1(uint32_t* base,vuint64m2_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u32m2(uint32_t* base,vuint64m4_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u32m4(uint32_t* base,vuint64m8_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u64m1(uint64_t* base,vuint64m1_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u64m2(uint64_t* base,vuint64m2_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u64m4(uint64_t* base,vuint64m4_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u64m8(uint64_t* base,vuint64m8_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_f32mf2(float* base,vuint64m1_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_f32m1(float* base,vuint64m2_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_f32m2(float* base,vuint64m4_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_f32m4(float* base,vuint64m8_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_f64m1(double* base,vuint64m1_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_f64m2(double* base,vuint64m2_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_f64m4(double* base,vuint64m4_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_f64m8(double* base,vuint64m8_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m8(base,bindex,value,vl); +} + + + +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v-2.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v-2.c new file mode 100644 index 00000000000..7ce64d18497 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v-2.c @@ -0,0 +1,262 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei64_v_i8mf8(int8_t* base,vuint64m1_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8mf8(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i8mf4(int8_t* base,vuint64m2_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8mf4(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i8mf2(int8_t* base,vuint64m4_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i8m1(int8_t* base,vuint64m8_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i16mf4(int16_t* base,vuint64m1_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16mf4(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i16mf2(int16_t* base,vuint64m2_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i16m1(int16_t* base,vuint64m4_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i16m2(int16_t* base,vuint64m8_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i32mf2(int32_t* base,vuint64m1_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i32m1(int32_t* base,vuint64m2_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i32m2(int32_t* base,vuint64m4_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i32m4(int32_t* base,vuint64m8_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i64m1(int64_t* base,vuint64m1_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i64m2(int64_t* base,vuint64m2_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i64m4(int64_t* base,vuint64m4_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i64m8(int64_t* base,vuint64m8_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u8mf8(uint8_t* base,vuint64m1_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8mf8(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u8mf4(uint8_t* base,vuint64m2_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8mf4(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u8mf2(uint8_t* base,vuint64m4_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u8m1(uint8_t* base,vuint64m8_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u16mf4(uint16_t* base,vuint64m1_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16mf4(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u16mf2(uint16_t* base,vuint64m2_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u16m1(uint16_t* base,vuint64m4_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u16m2(uint16_t* base,vuint64m8_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u32mf2(uint32_t* base,vuint64m1_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u32m1(uint32_t* base,vuint64m2_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u32m2(uint32_t* base,vuint64m4_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u32m4(uint32_t* base,vuint64m8_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u64m1(uint64_t* base,vuint64m1_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u64m2(uint64_t* base,vuint64m2_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u64m4(uint64_t* base,vuint64m4_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u64m8(uint64_t* base,vuint64m8_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_f32mf2(float* base,vuint64m1_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_f32m1(float* base,vuint64m2_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_f32m2(float* base,vuint64m4_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_f32m4(float* base,vuint64m8_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_f64m1(double* base,vuint64m1_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_f64m2(double* base,vuint64m2_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_f64m4(double* base,vuint64m4_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_f64m8(double* base,vuint64m8_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m8(base,bindex,value,31); +} + + + +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v-3.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v-3.c new file mode 100644 index 00000000000..ef4f76370e9 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v-3.c @@ -0,0 +1,262 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei64_v_i8mf8(int8_t* base,vuint64m1_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8mf8(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i8mf4(int8_t* base,vuint64m2_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8mf4(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i8mf2(int8_t* base,vuint64m4_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i8m1(int8_t* base,vuint64m8_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i16mf4(int16_t* base,vuint64m1_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16mf4(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i16mf2(int16_t* base,vuint64m2_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i16m1(int16_t* base,vuint64m4_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i16m2(int16_t* base,vuint64m8_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i32mf2(int32_t* base,vuint64m1_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i32m1(int32_t* base,vuint64m2_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i32m2(int32_t* base,vuint64m4_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i32m4(int32_t* base,vuint64m8_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i64m1(int64_t* base,vuint64m1_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i64m2(int64_t* base,vuint64m2_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i64m4(int64_t* base,vuint64m4_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i64m8(int64_t* base,vuint64m8_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u8mf8(uint8_t* base,vuint64m1_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8mf8(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u8mf4(uint8_t* base,vuint64m2_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8mf4(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u8mf2(uint8_t* base,vuint64m4_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u8m1(uint8_t* base,vuint64m8_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u16mf4(uint16_t* base,vuint64m1_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16mf4(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u16mf2(uint16_t* base,vuint64m2_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u16m1(uint16_t* base,vuint64m4_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u16m2(uint16_t* base,vuint64m8_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u32mf2(uint32_t* base,vuint64m1_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u32m1(uint32_t* base,vuint64m2_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u32m2(uint32_t* base,vuint64m4_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u32m4(uint32_t* base,vuint64m8_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u64m1(uint64_t* base,vuint64m1_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u64m2(uint64_t* base,vuint64m2_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u64m4(uint64_t* base,vuint64m4_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u64m8(uint64_t* base,vuint64m8_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_f32mf2(float* base,vuint64m1_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_f32m1(float* base,vuint64m2_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_f32m2(float* base,vuint64m4_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_f32m4(float* base,vuint64m8_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_f64m1(double* base,vuint64m1_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_f64m2(double* base,vuint64m2_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_f64m4(double* base,vuint64m4_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_f64m8(double* base,vuint64m8_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m8(base,bindex,value,32); +} + + + +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v_m-1.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v_m-1.c new file mode 100644 index 00000000000..5ddcdab15ba --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v_m-1.c @@ -0,0 +1,262 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei64_v_i8mf8_m(vbool64_t mask,int8_t* base,vuint64m1_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8mf8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i8mf4_m(vbool32_t mask,int8_t* base,vuint64m2_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8mf4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i8mf2_m(vbool16_t mask,int8_t* base,vuint64m4_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i8m1_m(vbool8_t mask,int8_t* base,vuint64m8_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i16mf4_m(vbool64_t mask,int16_t* base,vuint64m1_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16mf4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i16mf2_m(vbool32_t mask,int16_t* base,vuint64m2_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i16m1_m(vbool16_t mask,int16_t* base,vuint64m4_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i16m2_m(vbool8_t mask,int16_t* base,vuint64m8_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i32mf2_m(vbool64_t mask,int32_t* base,vuint64m1_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i32m1_m(vbool32_t mask,int32_t* base,vuint64m2_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i32m2_m(vbool16_t mask,int32_t* base,vuint64m4_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i32m4_m(vbool8_t mask,int32_t* base,vuint64m8_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i64m1_m(vbool64_t mask,int64_t* base,vuint64m1_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i64m2_m(vbool32_t mask,int64_t* base,vuint64m2_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i64m4_m(vbool16_t mask,int64_t* base,vuint64m4_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_i64m8_m(vbool8_t mask,int64_t* base,vuint64m8_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u8mf8_m(vbool64_t mask,uint8_t* base,vuint64m1_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8mf8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u8mf4_m(vbool32_t mask,uint8_t* base,vuint64m2_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8mf4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u8mf2_m(vbool16_t mask,uint8_t* base,vuint64m4_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u8m1_m(vbool8_t mask,uint8_t* base,vuint64m8_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u16mf4_m(vbool64_t mask,uint16_t* base,vuint64m1_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16mf4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u16mf2_m(vbool32_t mask,uint16_t* base,vuint64m2_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u16m1_m(vbool16_t mask,uint16_t* base,vuint64m4_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u16m2_m(vbool8_t mask,uint16_t* base,vuint64m8_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u32mf2_m(vbool64_t mask,uint32_t* base,vuint64m1_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u32m1_m(vbool32_t mask,uint32_t* base,vuint64m2_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u32m2_m(vbool16_t mask,uint32_t* base,vuint64m4_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u32m4_m(vbool8_t mask,uint32_t* base,vuint64m8_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u64m1_m(vbool64_t mask,uint64_t* base,vuint64m1_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u64m2_m(vbool32_t mask,uint64_t* base,vuint64m2_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u64m4_m(vbool16_t mask,uint64_t* base,vuint64m4_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_u64m8_m(vbool8_t mask,uint64_t* base,vuint64m8_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_f32mf2_m(vbool64_t mask,float* base,vuint64m1_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_f32m1_m(vbool32_t mask,float* base,vuint64m2_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_f32m2_m(vbool16_t mask,float* base,vuint64m4_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_f32m4_m(vbool8_t mask,float* base,vuint64m8_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_f64m1_m(vbool64_t mask,double* base,vuint64m1_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_f64m2_m(vbool32_t mask,double* base,vuint64m2_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_f64m4_m(vbool16_t mask,double* base,vuint64m4_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei64_v_f64m8_m(vbool8_t mask,double* base,vuint64m8_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m8_m(mask,base,bindex,value,vl); +} + + + +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v_m-2.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v_m-2.c new file mode 100644 index 00000000000..fc0965dd606 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v_m-2.c @@ -0,0 +1,262 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei64_v_i8mf8_m(vbool64_t mask,int8_t* base,vuint64m1_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8mf8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i8mf4_m(vbool32_t mask,int8_t* base,vuint64m2_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8mf4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i8mf2_m(vbool16_t mask,int8_t* base,vuint64m4_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i8m1_m(vbool8_t mask,int8_t* base,vuint64m8_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i16mf4_m(vbool64_t mask,int16_t* base,vuint64m1_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16mf4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i16mf2_m(vbool32_t mask,int16_t* base,vuint64m2_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i16m1_m(vbool16_t mask,int16_t* base,vuint64m4_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i16m2_m(vbool8_t mask,int16_t* base,vuint64m8_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i32mf2_m(vbool64_t mask,int32_t* base,vuint64m1_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i32m1_m(vbool32_t mask,int32_t* base,vuint64m2_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i32m2_m(vbool16_t mask,int32_t* base,vuint64m4_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i32m4_m(vbool8_t mask,int32_t* base,vuint64m8_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i64m1_m(vbool64_t mask,int64_t* base,vuint64m1_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i64m2_m(vbool32_t mask,int64_t* base,vuint64m2_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i64m4_m(vbool16_t mask,int64_t* base,vuint64m4_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_i64m8_m(vbool8_t mask,int64_t* base,vuint64m8_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u8mf8_m(vbool64_t mask,uint8_t* base,vuint64m1_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8mf8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u8mf4_m(vbool32_t mask,uint8_t* base,vuint64m2_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8mf4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u8mf2_m(vbool16_t mask,uint8_t* base,vuint64m4_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u8m1_m(vbool8_t mask,uint8_t* base,vuint64m8_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u16mf4_m(vbool64_t mask,uint16_t* base,vuint64m1_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16mf4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u16mf2_m(vbool32_t mask,uint16_t* base,vuint64m2_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u16m1_m(vbool16_t mask,uint16_t* base,vuint64m4_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u16m2_m(vbool8_t mask,uint16_t* base,vuint64m8_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u32mf2_m(vbool64_t mask,uint32_t* base,vuint64m1_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u32m1_m(vbool32_t mask,uint32_t* base,vuint64m2_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u32m2_m(vbool16_t mask,uint32_t* base,vuint64m4_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u32m4_m(vbool8_t mask,uint32_t* base,vuint64m8_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u64m1_m(vbool64_t mask,uint64_t* base,vuint64m1_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u64m2_m(vbool32_t mask,uint64_t* base,vuint64m2_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u64m4_m(vbool16_t mask,uint64_t* base,vuint64m4_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_u64m8_m(vbool8_t mask,uint64_t* base,vuint64m8_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_f32mf2_m(vbool64_t mask,float* base,vuint64m1_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_f32m1_m(vbool32_t mask,float* base,vuint64m2_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_f32m2_m(vbool16_t mask,float* base,vuint64m4_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_f32m4_m(vbool8_t mask,float* base,vuint64m8_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_f64m1_m(vbool64_t mask,double* base,vuint64m1_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_f64m2_m(vbool32_t mask,double* base,vuint64m2_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_f64m4_m(vbool16_t mask,double* base,vuint64m4_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei64_v_f64m8_m(vbool8_t mask,double* base,vuint64m8_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m8_m(mask,base,bindex,value,31); +} + + + +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v_m-3.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v_m-3.c new file mode 100644 index 00000000000..8f32f6c1999 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei64_v_m-3.c @@ -0,0 +1,262 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei64_v_i8mf8_m(vbool64_t mask,int8_t* base,vuint64m1_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8mf8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i8mf4_m(vbool32_t mask,int8_t* base,vuint64m2_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8mf4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i8mf2_m(vbool16_t mask,int8_t* base,vuint64m4_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i8m1_m(vbool8_t mask,int8_t* base,vuint64m8_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i8m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i16mf4_m(vbool64_t mask,int16_t* base,vuint64m1_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16mf4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i16mf2_m(vbool32_t mask,int16_t* base,vuint64m2_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i16m1_m(vbool16_t mask,int16_t* base,vuint64m4_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i16m2_m(vbool8_t mask,int16_t* base,vuint64m8_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i16m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i32mf2_m(vbool64_t mask,int32_t* base,vuint64m1_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i32m1_m(vbool32_t mask,int32_t* base,vuint64m2_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i32m2_m(vbool16_t mask,int32_t* base,vuint64m4_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i32m4_m(vbool8_t mask,int32_t* base,vuint64m8_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i32m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i64m1_m(vbool64_t mask,int64_t* base,vuint64m1_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i64m2_m(vbool32_t mask,int64_t* base,vuint64m2_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i64m4_m(vbool16_t mask,int64_t* base,vuint64m4_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_i64m8_m(vbool8_t mask,int64_t* base,vuint64m8_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei64_v_i64m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u8mf8_m(vbool64_t mask,uint8_t* base,vuint64m1_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8mf8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u8mf4_m(vbool32_t mask,uint8_t* base,vuint64m2_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8mf4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u8mf2_m(vbool16_t mask,uint8_t* base,vuint64m4_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u8m1_m(vbool8_t mask,uint8_t* base,vuint64m8_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u8m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u16mf4_m(vbool64_t mask,uint16_t* base,vuint64m1_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16mf4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u16mf2_m(vbool32_t mask,uint16_t* base,vuint64m2_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u16m1_m(vbool16_t mask,uint16_t* base,vuint64m4_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u16m2_m(vbool8_t mask,uint16_t* base,vuint64m8_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u16m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u32mf2_m(vbool64_t mask,uint32_t* base,vuint64m1_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u32m1_m(vbool32_t mask,uint32_t* base,vuint64m2_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u32m2_m(vbool16_t mask,uint32_t* base,vuint64m4_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u32m4_m(vbool8_t mask,uint32_t* base,vuint64m8_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u32m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u64m1_m(vbool64_t mask,uint64_t* base,vuint64m1_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u64m2_m(vbool32_t mask,uint64_t* base,vuint64m2_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u64m4_m(vbool16_t mask,uint64_t* base,vuint64m4_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_u64m8_m(vbool8_t mask,uint64_t* base,vuint64m8_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei64_v_u64m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_f32mf2_m(vbool64_t mask,float* base,vuint64m1_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_f32m1_m(vbool32_t mask,float* base,vuint64m2_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_f32m2_m(vbool16_t mask,float* base,vuint64m4_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_f32m4_m(vbool8_t mask,float* base,vuint64m8_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_f32m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_f64m1_m(vbool64_t mask,double* base,vuint64m1_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_f64m2_m(vbool32_t mask,double* base,vuint64m2_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_f64m4_m(vbool16_t mask,double* base,vuint64m4_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei64_v_f64m8_m(vbool8_t mask,double* base,vuint64m8_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei64_v_f64m8_m(mask,base,bindex,value,32); +} + + + +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei64\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v-1.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v-1.c new file mode 100644 index 00000000000..809985fcca2 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v-1.c @@ -0,0 +1,346 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei8_v_i8mf8(int8_t* base,vuint8mf8_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8mf8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i8mf4(int8_t* base,vuint8mf4_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8mf4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i8mf2(int8_t* base,vuint8mf2_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i8m1(int8_t* base,vuint8m1_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i8m2(int8_t* base,vuint8m2_t bindex,vint8m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i8m4(int8_t* base,vuint8m4_t bindex,vint8m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i8m8(int8_t* base,vuint8m8_t bindex,vint8m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i16mf4(int16_t* base,vuint8mf8_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16mf4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i16mf2(int16_t* base,vuint8mf4_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i16m1(int16_t* base,vuint8mf2_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i16m2(int16_t* base,vuint8m1_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i16m4(int16_t* base,vuint8m2_t bindex,vint16m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i16m8(int16_t* base,vuint8m4_t bindex,vint16m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i32mf2(int32_t* base,vuint8mf8_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i32m1(int32_t* base,vuint8mf4_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i32m2(int32_t* base,vuint8mf2_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i32m4(int32_t* base,vuint8m1_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i32m8(int32_t* base,vuint8m2_t bindex,vint32m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i64m1(int64_t* base,vuint8mf8_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i64m2(int64_t* base,vuint8mf4_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i64m4(int64_t* base,vuint8mf2_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i64m8(int64_t* base,vuint8m1_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u8mf8(uint8_t* base,vuint8mf8_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8mf8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u8mf4(uint8_t* base,vuint8mf4_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8mf4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u8mf2(uint8_t* base,vuint8mf2_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u8m1(uint8_t* base,vuint8m1_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u8m2(uint8_t* base,vuint8m2_t bindex,vuint8m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u8m4(uint8_t* base,vuint8m4_t bindex,vuint8m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u8m8(uint8_t* base,vuint8m8_t bindex,vuint8m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u16mf4(uint16_t* base,vuint8mf8_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16mf4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u16mf2(uint16_t* base,vuint8mf4_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u16m1(uint16_t* base,vuint8mf2_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u16m2(uint16_t* base,vuint8m1_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u16m4(uint16_t* base,vuint8m2_t bindex,vuint16m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u16m8(uint16_t* base,vuint8m4_t bindex,vuint16m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u32mf2(uint32_t* base,vuint8mf8_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u32m1(uint32_t* base,vuint8mf4_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u32m2(uint32_t* base,vuint8mf2_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u32m4(uint32_t* base,vuint8m1_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u32m8(uint32_t* base,vuint8m2_t bindex,vuint32m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u64m1(uint64_t* base,vuint8mf8_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u64m2(uint64_t* base,vuint8mf4_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u64m4(uint64_t* base,vuint8mf2_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u64m8(uint64_t* base,vuint8m1_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_f32mf2(float* base,vuint8mf8_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32mf2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_f32m1(float* base,vuint8mf4_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_f32m2(float* base,vuint8mf2_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_f32m4(float* base,vuint8m1_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_f32m8(float* base,vuint8m2_t bindex,vfloat32m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m8(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_f64m1(double* base,vuint8mf8_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m1(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_f64m2(double* base,vuint8mf4_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m2(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_f64m4(double* base,vuint8mf2_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m4(base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_f64m8(double* base,vuint8m1_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m8(base,bindex,value,vl); +} + + + +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v-2.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v-2.c new file mode 100644 index 00000000000..60faaab6861 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v-2.c @@ -0,0 +1,346 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei8_v_i8mf8(int8_t* base,vuint8mf8_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8mf8(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i8mf4(int8_t* base,vuint8mf4_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8mf4(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i8mf2(int8_t* base,vuint8mf2_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i8m1(int8_t* base,vuint8m1_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i8m2(int8_t* base,vuint8m2_t bindex,vint8m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i8m4(int8_t* base,vuint8m4_t bindex,vint8m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i8m8(int8_t* base,vuint8m8_t bindex,vint8m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i16mf4(int16_t* base,vuint8mf8_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16mf4(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i16mf2(int16_t* base,vuint8mf4_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i16m1(int16_t* base,vuint8mf2_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i16m2(int16_t* base,vuint8m1_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i16m4(int16_t* base,vuint8m2_t bindex,vint16m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i16m8(int16_t* base,vuint8m4_t bindex,vint16m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i32mf2(int32_t* base,vuint8mf8_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i32m1(int32_t* base,vuint8mf4_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i32m2(int32_t* base,vuint8mf2_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i32m4(int32_t* base,vuint8m1_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i32m8(int32_t* base,vuint8m2_t bindex,vint32m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i64m1(int64_t* base,vuint8mf8_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i64m2(int64_t* base,vuint8mf4_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i64m4(int64_t* base,vuint8mf2_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i64m8(int64_t* base,vuint8m1_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u8mf8(uint8_t* base,vuint8mf8_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8mf8(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u8mf4(uint8_t* base,vuint8mf4_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8mf4(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u8mf2(uint8_t* base,vuint8mf2_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u8m1(uint8_t* base,vuint8m1_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u8m2(uint8_t* base,vuint8m2_t bindex,vuint8m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u8m4(uint8_t* base,vuint8m4_t bindex,vuint8m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u8m8(uint8_t* base,vuint8m8_t bindex,vuint8m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u16mf4(uint16_t* base,vuint8mf8_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16mf4(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u16mf2(uint16_t* base,vuint8mf4_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u16m1(uint16_t* base,vuint8mf2_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u16m2(uint16_t* base,vuint8m1_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u16m4(uint16_t* base,vuint8m2_t bindex,vuint16m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u16m8(uint16_t* base,vuint8m4_t bindex,vuint16m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u32mf2(uint32_t* base,vuint8mf8_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u32m1(uint32_t* base,vuint8mf4_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u32m2(uint32_t* base,vuint8mf2_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u32m4(uint32_t* base,vuint8m1_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u32m8(uint32_t* base,vuint8m2_t bindex,vuint32m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u64m1(uint64_t* base,vuint8mf8_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u64m2(uint64_t* base,vuint8mf4_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u64m4(uint64_t* base,vuint8mf2_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u64m8(uint64_t* base,vuint8m1_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_f32mf2(float* base,vuint8mf8_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32mf2(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_f32m1(float* base,vuint8mf4_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_f32m2(float* base,vuint8mf2_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_f32m4(float* base,vuint8m1_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_f32m8(float* base,vuint8m2_t bindex,vfloat32m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m8(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_f64m1(double* base,vuint8mf8_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m1(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_f64m2(double* base,vuint8mf4_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m2(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_f64m4(double* base,vuint8mf2_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m4(base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_f64m8(double* base,vuint8m1_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m8(base,bindex,value,31); +} + + + +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v-3.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v-3.c new file mode 100644 index 00000000000..ba193c56924 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v-3.c @@ -0,0 +1,346 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei8_v_i8mf8(int8_t* base,vuint8mf8_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8mf8(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i8mf4(int8_t* base,vuint8mf4_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8mf4(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i8mf2(int8_t* base,vuint8mf2_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i8m1(int8_t* base,vuint8m1_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i8m2(int8_t* base,vuint8m2_t bindex,vint8m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i8m4(int8_t* base,vuint8m4_t bindex,vint8m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i8m8(int8_t* base,vuint8m8_t bindex,vint8m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i16mf4(int16_t* base,vuint8mf8_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16mf4(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i16mf2(int16_t* base,vuint8mf4_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i16m1(int16_t* base,vuint8mf2_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i16m2(int16_t* base,vuint8m1_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i16m4(int16_t* base,vuint8m2_t bindex,vint16m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i16m8(int16_t* base,vuint8m4_t bindex,vint16m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i32mf2(int32_t* base,vuint8mf8_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i32m1(int32_t* base,vuint8mf4_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i32m2(int32_t* base,vuint8mf2_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i32m4(int32_t* base,vuint8m1_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i32m8(int32_t* base,vuint8m2_t bindex,vint32m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i64m1(int64_t* base,vuint8mf8_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i64m2(int64_t* base,vuint8mf4_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i64m4(int64_t* base,vuint8mf2_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i64m8(int64_t* base,vuint8m1_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u8mf8(uint8_t* base,vuint8mf8_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8mf8(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u8mf4(uint8_t* base,vuint8mf4_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8mf4(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u8mf2(uint8_t* base,vuint8mf2_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u8m1(uint8_t* base,vuint8m1_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u8m2(uint8_t* base,vuint8m2_t bindex,vuint8m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u8m4(uint8_t* base,vuint8m4_t bindex,vuint8m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u8m8(uint8_t* base,vuint8m8_t bindex,vuint8m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u16mf4(uint16_t* base,vuint8mf8_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16mf4(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u16mf2(uint16_t* base,vuint8mf4_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u16m1(uint16_t* base,vuint8mf2_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u16m2(uint16_t* base,vuint8m1_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u16m4(uint16_t* base,vuint8m2_t bindex,vuint16m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u16m8(uint16_t* base,vuint8m4_t bindex,vuint16m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u32mf2(uint32_t* base,vuint8mf8_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u32m1(uint32_t* base,vuint8mf4_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u32m2(uint32_t* base,vuint8mf2_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u32m4(uint32_t* base,vuint8m1_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u32m8(uint32_t* base,vuint8m2_t bindex,vuint32m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u64m1(uint64_t* base,vuint8mf8_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u64m2(uint64_t* base,vuint8mf4_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u64m4(uint64_t* base,vuint8mf2_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u64m8(uint64_t* base,vuint8m1_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_f32mf2(float* base,vuint8mf8_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32mf2(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_f32m1(float* base,vuint8mf4_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_f32m2(float* base,vuint8mf2_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_f32m4(float* base,vuint8m1_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_f32m8(float* base,vuint8m2_t bindex,vfloat32m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m8(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_f64m1(double* base,vuint8mf8_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m1(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_f64m2(double* base,vuint8mf4_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m2(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_f64m4(double* base,vuint8mf2_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m4(base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_f64m8(double* base,vuint8m1_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m8(base,bindex,value,32); +} + + + +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v_m-1.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v_m-1.c new file mode 100644 index 00000000000..7f9ecb51d33 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v_m-1.c @@ -0,0 +1,346 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei8_v_i8mf8_m(vbool64_t mask,int8_t* base,vuint8mf8_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8mf8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i8mf4_m(vbool32_t mask,int8_t* base,vuint8mf4_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8mf4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i8mf2_m(vbool16_t mask,int8_t* base,vuint8mf2_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i8m1_m(vbool8_t mask,int8_t* base,vuint8m1_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i8m2_m(vbool4_t mask,int8_t* base,vuint8m2_t bindex,vint8m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i8m4_m(vbool2_t mask,int8_t* base,vuint8m4_t bindex,vint8m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i8m8_m(vbool1_t mask,int8_t* base,vuint8m8_t bindex,vint8m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i16mf4_m(vbool64_t mask,int16_t* base,vuint8mf8_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16mf4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i16mf2_m(vbool32_t mask,int16_t* base,vuint8mf4_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i16m1_m(vbool16_t mask,int16_t* base,vuint8mf2_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i16m2_m(vbool8_t mask,int16_t* base,vuint8m1_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i16m4_m(vbool4_t mask,int16_t* base,vuint8m2_t bindex,vint16m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i16m8_m(vbool2_t mask,int16_t* base,vuint8m4_t bindex,vint16m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i32mf2_m(vbool64_t mask,int32_t* base,vuint8mf8_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i32m1_m(vbool32_t mask,int32_t* base,vuint8mf4_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i32m2_m(vbool16_t mask,int32_t* base,vuint8mf2_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i32m4_m(vbool8_t mask,int32_t* base,vuint8m1_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i32m8_m(vbool4_t mask,int32_t* base,vuint8m2_t bindex,vint32m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i64m1_m(vbool64_t mask,int64_t* base,vuint8mf8_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i64m2_m(vbool32_t mask,int64_t* base,vuint8mf4_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i64m4_m(vbool16_t mask,int64_t* base,vuint8mf2_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_i64m8_m(vbool8_t mask,int64_t* base,vuint8m1_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u8mf8_m(vbool64_t mask,uint8_t* base,vuint8mf8_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8mf8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u8mf4_m(vbool32_t mask,uint8_t* base,vuint8mf4_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8mf4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u8mf2_m(vbool16_t mask,uint8_t* base,vuint8mf2_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u8m1_m(vbool8_t mask,uint8_t* base,vuint8m1_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u8m2_m(vbool4_t mask,uint8_t* base,vuint8m2_t bindex,vuint8m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u8m4_m(vbool2_t mask,uint8_t* base,vuint8m4_t bindex,vuint8m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u8m8_m(vbool1_t mask,uint8_t* base,vuint8m8_t bindex,vuint8m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u16mf4_m(vbool64_t mask,uint16_t* base,vuint8mf8_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16mf4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u16mf2_m(vbool32_t mask,uint16_t* base,vuint8mf4_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u16m1_m(vbool16_t mask,uint16_t* base,vuint8mf2_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u16m2_m(vbool8_t mask,uint16_t* base,vuint8m1_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u16m4_m(vbool4_t mask,uint16_t* base,vuint8m2_t bindex,vuint16m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u16m8_m(vbool2_t mask,uint16_t* base,vuint8m4_t bindex,vuint16m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u32mf2_m(vbool64_t mask,uint32_t* base,vuint8mf8_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u32m1_m(vbool32_t mask,uint32_t* base,vuint8mf4_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u32m2_m(vbool16_t mask,uint32_t* base,vuint8mf2_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u32m4_m(vbool8_t mask,uint32_t* base,vuint8m1_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u32m8_m(vbool4_t mask,uint32_t* base,vuint8m2_t bindex,vuint32m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u64m1_m(vbool64_t mask,uint64_t* base,vuint8mf8_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u64m2_m(vbool32_t mask,uint64_t* base,vuint8mf4_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u64m4_m(vbool16_t mask,uint64_t* base,vuint8mf2_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_u64m8_m(vbool8_t mask,uint64_t* base,vuint8m1_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_f32mf2_m(vbool64_t mask,float* base,vuint8mf8_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32mf2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_f32m1_m(vbool32_t mask,float* base,vuint8mf4_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_f32m2_m(vbool16_t mask,float* base,vuint8mf2_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_f32m4_m(vbool8_t mask,float* base,vuint8m1_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_f32m8_m(vbool4_t mask,float* base,vuint8m2_t bindex,vfloat32m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m8_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_f64m1_m(vbool64_t mask,double* base,vuint8mf8_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m1_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_f64m2_m(vbool32_t mask,double* base,vuint8mf4_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m2_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_f64m4_m(vbool16_t mask,double* base,vuint8mf2_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m4_m(mask,base,bindex,value,vl); +} + + +void test___riscv_vsuxei8_v_f64m8_m(vbool8_t mask,double* base,vuint8m1_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m8_m(mask,base,bindex,value,vl); +} + + + +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v_m-2.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v_m-2.c new file mode 100644 index 00000000000..a9fc5997ea4 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v_m-2.c @@ -0,0 +1,346 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei8_v_i8mf8_m(vbool64_t mask,int8_t* base,vuint8mf8_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8mf8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i8mf4_m(vbool32_t mask,int8_t* base,vuint8mf4_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8mf4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i8mf2_m(vbool16_t mask,int8_t* base,vuint8mf2_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i8m1_m(vbool8_t mask,int8_t* base,vuint8m1_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i8m2_m(vbool4_t mask,int8_t* base,vuint8m2_t bindex,vint8m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i8m4_m(vbool2_t mask,int8_t* base,vuint8m4_t bindex,vint8m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i8m8_m(vbool1_t mask,int8_t* base,vuint8m8_t bindex,vint8m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i16mf4_m(vbool64_t mask,int16_t* base,vuint8mf8_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16mf4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i16mf2_m(vbool32_t mask,int16_t* base,vuint8mf4_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i16m1_m(vbool16_t mask,int16_t* base,vuint8mf2_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i16m2_m(vbool8_t mask,int16_t* base,vuint8m1_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i16m4_m(vbool4_t mask,int16_t* base,vuint8m2_t bindex,vint16m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i16m8_m(vbool2_t mask,int16_t* base,vuint8m4_t bindex,vint16m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i32mf2_m(vbool64_t mask,int32_t* base,vuint8mf8_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i32m1_m(vbool32_t mask,int32_t* base,vuint8mf4_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i32m2_m(vbool16_t mask,int32_t* base,vuint8mf2_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i32m4_m(vbool8_t mask,int32_t* base,vuint8m1_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i32m8_m(vbool4_t mask,int32_t* base,vuint8m2_t bindex,vint32m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i64m1_m(vbool64_t mask,int64_t* base,vuint8mf8_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i64m2_m(vbool32_t mask,int64_t* base,vuint8mf4_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i64m4_m(vbool16_t mask,int64_t* base,vuint8mf2_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_i64m8_m(vbool8_t mask,int64_t* base,vuint8m1_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u8mf8_m(vbool64_t mask,uint8_t* base,vuint8mf8_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8mf8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u8mf4_m(vbool32_t mask,uint8_t* base,vuint8mf4_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8mf4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u8mf2_m(vbool16_t mask,uint8_t* base,vuint8mf2_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u8m1_m(vbool8_t mask,uint8_t* base,vuint8m1_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u8m2_m(vbool4_t mask,uint8_t* base,vuint8m2_t bindex,vuint8m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u8m4_m(vbool2_t mask,uint8_t* base,vuint8m4_t bindex,vuint8m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u8m8_m(vbool1_t mask,uint8_t* base,vuint8m8_t bindex,vuint8m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u16mf4_m(vbool64_t mask,uint16_t* base,vuint8mf8_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16mf4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u16mf2_m(vbool32_t mask,uint16_t* base,vuint8mf4_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u16m1_m(vbool16_t mask,uint16_t* base,vuint8mf2_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u16m2_m(vbool8_t mask,uint16_t* base,vuint8m1_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u16m4_m(vbool4_t mask,uint16_t* base,vuint8m2_t bindex,vuint16m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u16m8_m(vbool2_t mask,uint16_t* base,vuint8m4_t bindex,vuint16m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u32mf2_m(vbool64_t mask,uint32_t* base,vuint8mf8_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u32m1_m(vbool32_t mask,uint32_t* base,vuint8mf4_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u32m2_m(vbool16_t mask,uint32_t* base,vuint8mf2_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u32m4_m(vbool8_t mask,uint32_t* base,vuint8m1_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u32m8_m(vbool4_t mask,uint32_t* base,vuint8m2_t bindex,vuint32m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u64m1_m(vbool64_t mask,uint64_t* base,vuint8mf8_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u64m2_m(vbool32_t mask,uint64_t* base,vuint8mf4_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u64m4_m(vbool16_t mask,uint64_t* base,vuint8mf2_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_u64m8_m(vbool8_t mask,uint64_t* base,vuint8m1_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_f32mf2_m(vbool64_t mask,float* base,vuint8mf8_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32mf2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_f32m1_m(vbool32_t mask,float* base,vuint8mf4_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_f32m2_m(vbool16_t mask,float* base,vuint8mf2_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_f32m4_m(vbool8_t mask,float* base,vuint8m1_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_f32m8_m(vbool4_t mask,float* base,vuint8m2_t bindex,vfloat32m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m8_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_f64m1_m(vbool64_t mask,double* base,vuint8mf8_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m1_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_f64m2_m(vbool32_t mask,double* base,vuint8mf4_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m2_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_f64m4_m(vbool16_t mask,double* base,vuint8mf2_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m4_m(mask,base,bindex,value,31); +} + + +void test___riscv_vsuxei8_v_f64m8_m(vbool8_t mask,double* base,vuint8m1_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m8_m(mask,base,bindex,value,31); +} + + + +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e8,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e16,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e32,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*31,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v_m-3.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v_m-3.c new file mode 100644 index 00000000000..d5d7a44adc8 --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vsuxei8_v_m-3.c @@ -0,0 +1,346 @@ +/* { dg-do compile } */ +/* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2" } */ + +#include "riscv_vector.h" + +void test___riscv_vsuxei8_v_i8mf8_m(vbool64_t mask,int8_t* base,vuint8mf8_t bindex,vint8mf8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8mf8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i8mf4_m(vbool32_t mask,int8_t* base,vuint8mf4_t bindex,vint8mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8mf4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i8mf2_m(vbool16_t mask,int8_t* base,vuint8mf2_t bindex,vint8mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i8m1_m(vbool8_t mask,int8_t* base,vuint8m1_t bindex,vint8m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i8m2_m(vbool4_t mask,int8_t* base,vuint8m2_t bindex,vint8m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i8m4_m(vbool2_t mask,int8_t* base,vuint8m4_t bindex,vint8m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i8m8_m(vbool1_t mask,int8_t* base,vuint8m8_t bindex,vint8m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i8m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i16mf4_m(vbool64_t mask,int16_t* base,vuint8mf8_t bindex,vint16mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16mf4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i16mf2_m(vbool32_t mask,int16_t* base,vuint8mf4_t bindex,vint16mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i16m1_m(vbool16_t mask,int16_t* base,vuint8mf2_t bindex,vint16m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i16m2_m(vbool8_t mask,int16_t* base,vuint8m1_t bindex,vint16m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i16m4_m(vbool4_t mask,int16_t* base,vuint8m2_t bindex,vint16m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i16m8_m(vbool2_t mask,int16_t* base,vuint8m4_t bindex,vint16m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i16m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i32mf2_m(vbool64_t mask,int32_t* base,vuint8mf8_t bindex,vint32mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i32m1_m(vbool32_t mask,int32_t* base,vuint8mf4_t bindex,vint32m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i32m2_m(vbool16_t mask,int32_t* base,vuint8mf2_t bindex,vint32m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i32m4_m(vbool8_t mask,int32_t* base,vuint8m1_t bindex,vint32m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i32m8_m(vbool4_t mask,int32_t* base,vuint8m2_t bindex,vint32m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i32m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i64m1_m(vbool64_t mask,int64_t* base,vuint8mf8_t bindex,vint64m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i64m2_m(vbool32_t mask,int64_t* base,vuint8mf4_t bindex,vint64m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i64m4_m(vbool16_t mask,int64_t* base,vuint8mf2_t bindex,vint64m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_i64m8_m(vbool8_t mask,int64_t* base,vuint8m1_t bindex,vint64m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_i64m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u8mf8_m(vbool64_t mask,uint8_t* base,vuint8mf8_t bindex,vuint8mf8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8mf8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u8mf4_m(vbool32_t mask,uint8_t* base,vuint8mf4_t bindex,vuint8mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8mf4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u8mf2_m(vbool16_t mask,uint8_t* base,vuint8mf2_t bindex,vuint8mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u8m1_m(vbool8_t mask,uint8_t* base,vuint8m1_t bindex,vuint8m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u8m2_m(vbool4_t mask,uint8_t* base,vuint8m2_t bindex,vuint8m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u8m4_m(vbool2_t mask,uint8_t* base,vuint8m4_t bindex,vuint8m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u8m8_m(vbool1_t mask,uint8_t* base,vuint8m8_t bindex,vuint8m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u8m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u16mf4_m(vbool64_t mask,uint16_t* base,vuint8mf8_t bindex,vuint16mf4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16mf4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u16mf2_m(vbool32_t mask,uint16_t* base,vuint8mf4_t bindex,vuint16mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u16m1_m(vbool16_t mask,uint16_t* base,vuint8mf2_t bindex,vuint16m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u16m2_m(vbool8_t mask,uint16_t* base,vuint8m1_t bindex,vuint16m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u16m4_m(vbool4_t mask,uint16_t* base,vuint8m2_t bindex,vuint16m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u16m8_m(vbool2_t mask,uint16_t* base,vuint8m4_t bindex,vuint16m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u16m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u32mf2_m(vbool64_t mask,uint32_t* base,vuint8mf8_t bindex,vuint32mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u32m1_m(vbool32_t mask,uint32_t* base,vuint8mf4_t bindex,vuint32m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u32m2_m(vbool16_t mask,uint32_t* base,vuint8mf2_t bindex,vuint32m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u32m4_m(vbool8_t mask,uint32_t* base,vuint8m1_t bindex,vuint32m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u32m8_m(vbool4_t mask,uint32_t* base,vuint8m2_t bindex,vuint32m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u32m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u64m1_m(vbool64_t mask,uint64_t* base,vuint8mf8_t bindex,vuint64m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u64m2_m(vbool32_t mask,uint64_t* base,vuint8mf4_t bindex,vuint64m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u64m4_m(vbool16_t mask,uint64_t* base,vuint8mf2_t bindex,vuint64m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_u64m8_m(vbool8_t mask,uint64_t* base,vuint8m1_t bindex,vuint64m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_u64m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_f32mf2_m(vbool64_t mask,float* base,vuint8mf8_t bindex,vfloat32mf2_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32mf2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_f32m1_m(vbool32_t mask,float* base,vuint8mf4_t bindex,vfloat32m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_f32m2_m(vbool16_t mask,float* base,vuint8mf2_t bindex,vfloat32m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_f32m4_m(vbool8_t mask,float* base,vuint8m1_t bindex,vfloat32m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_f32m8_m(vbool4_t mask,float* base,vuint8m2_t bindex,vfloat32m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_f32m8_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_f64m1_m(vbool64_t mask,double* base,vuint8mf8_t bindex,vfloat64m1_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m1_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_f64m2_m(vbool32_t mask,double* base,vuint8mf4_t bindex,vfloat64m2_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m2_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_f64m4_m(vbool16_t mask,double* base,vuint8mf2_t bindex,vfloat64m4_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m4_m(mask,base,bindex,value,32); +} + + +void test___riscv_vsuxei8_v_f64m8_m(vbool8_t mask,double* base,vuint8m1_t bindex,vfloat64m8_t value,size_t vl) +{ + __riscv_vsuxei8_v_f64m8_m(mask,base,bindex,value,32); +} + + + +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e16,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 2 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*mf2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e32,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m1,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m2,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m4,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */ +/* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e64,\s*m8,\s*t[au],\s*m[au]\s+vsuxei8\.v\s+v[0-9]+,\s*0?\([a-x0-9]+\),\s*v[0-9]+,\s*v0.t} 3 } } */